- Notifications
You must be signed in to change notification settings - Fork28
Commit3e0d80f
committed
Fix resource management bug with replication=database.
Commit0d8c9c1 allowed BASE_BACKUP toacquire a ResourceOwner without a transaction so that the backupmanifest functionality could use a BufFile, but it overlooked the factthat when a walsender is used with replication=database, it might havea transaction in progress, because in that mode, SQL and replicationcommands can be mixed. Try to fix things up so that the two cleanupmechanisms don't conflict.Per buildfarm member serinus, which triggered the problem whenCREATE_REPLICATION_SLOT failed from inside a transaction. It passedon the subsequent run, so evidently the failure doesn't happen everytime.1 parentdb1531c commit3e0d80f
1 file changed
+7
-1
lines changedLines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
315 | 315 |
| |
316 | 316 |
| |
317 | 317 |
| |
318 |
| - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
319 | 325 |
| |
320 | 326 |
| |
321 | 327 |
| |
|
0 commit comments
Comments
(0)