aboutsummaryrefslogtreecommitdiff
path: root/src/backend/lib
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-12-14 10:58:15 +0900
committerMichael Paquier <michael@paquier.xyz>2021-12-14 10:58:15 +0900
commitece8c76192fee0b78509688325631ceabca44ff5 (patch)
tree1ac9887dfde485e7f430d6ca988131c234aa27b5 /src/backend/lib
parent189699dd3680d85c74c3886b33d9a9f83301defd (diff)
downloadpostgresql-ece8c76192fee0b78509688325631ceabca44ff5.tar.gz
postgresql-ece8c76192fee0b78509688325631ceabca44ff5.zip
Remove assertion for replication origins in PREPARE TRANSACTION
When using replication origins, pg_replication_origin_xact_setup() is an optional choice to be able to set a LSN and a timestamp to mark the origin, which would be additionally added to WAL for transaction commits or aborts (including 2PC transactions). An assertion in the code path of PREPARE TRANSACTION assumed that this data should always be set, so it would trigger when using replication origins without setting up an origin LSN. Some tests are added to cover more this kind of scenario. Oversight in commit 1eb6d65. Per discussion with Amit Kapila and Masahiko Sawada. Discussion: https://postgr.es/m/YbbBfNSvMm5nIINV@paquier.xyz Backpatch-through: 11
Diffstat (limited to 'src/backend/lib')
0 files changed, 0 insertions, 0 deletions