aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2020-04-03 22:28:37 -0400
committerRobert Haas <rhaas@postgresql.org>2020-04-03 22:28:37 -0400
commit3e0d80fd8d3dd4f999e0d3aa3e591f480d8ad1fd (patch)
tree51bb53b3cfb2c34b53ba31ccf33973d8ad76d973 /src/backend/access/gist/gistxlog.c
parentdb1531cae00941bfe4f6321fdef1e1ef355b6bed (diff)
downloadpostgresql-3e0d80fd8d3dd4f999e0d3aa3e591f480d8ad1fd.tar.gz
postgresql-3e0d80fd8d3dd4f999e0d3aa3e591f480d8ad1fd.zip
Fix resource management bug with replication=database.
Commit 0d8c9c1210c44b36ec2efcb223a1dfbe897a3661 allowed BASE_BACKUP to acquire a ResourceOwner without a transaction so that the backup manifest functionality could use a BufFile, but it overlooked the fact that when a walsender is used with replication=database, it might have a transaction in progress, because in that mode, SQL and replication commands can be mixed. Try to fix things up so that the two cleanup mechanisms don't conflict. Per buildfarm member serinus, which triggered the problem when CREATE_REPLICATION_SLOT failed from inside a transaction. It passed on the subsequent run, so evidently the failure doesn't happen every time.
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions