postgresql/contrib/test_decoding
Michael Paquier 4be3e005e5 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:25 +09:00
..
expected Remove assertion for replication origins in PREPARE TRANSACTION 2021-12-14 10:58:25 +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:25 +09:00
t Add more $Test::Builder::Level in the TAP tests 2021-10-12 11:16:20 +09:00
.gitignore Improve isolation tests infrastructure. 2017-03-14 15:56:17 -07:00
Makefile Add information of total data processed to replication slot stats. 2021-04-16 07:34:43 +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 Add a xid argument to the filter_prepare callback for output plugins. 2021-03-30 10:34:43 +05:30