postgresql/contrib/test_decoding
Michael Paquier 3f710fc2b4 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
2021-12-14 10:58:29 +09:00
..
expected Remove assertion for replication origins in PREPARE TRANSACTION 2021-12-14 10:58:29 +09:00
specs Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
sql Remove assertion for replication origins in PREPARE TRANSACTION 2021-12-14 10:58:29 +09:00
.gitignore Improve isolation tests infrastructure. 2017-03-14 15:56:17 -07:00
Makefile Stop demanding that top xact must be seen before subxact in decoding. 2020-02-19 08:15:49 +05:30
logical.conf Add logical_decoding_work_mem to limit ReorderBuffer memory usage. 2019-11-19 07:32:36 +05:30
test_decoding.c Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00