git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 189699d) | patch
Remove assertion for replication origins in PREPARE TRANSACTION
2021年12月14日 01:58:15 +0000 (10:58 +0900)
2021年12月14日 01:58:15 +0000 (10:58 +0900)
commit ece8c76192fee0b78509688325631ceabca44ff5
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
contrib/test_decoding/expected/replorigin.out diff | blob | blame | history
contrib/test_decoding/sql/replorigin.sql diff | blob | blame | history
src/backend/access/transam/twophase.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /