postgresql/contrib/test_decoding
Michael Paquier ece8c76192 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:15 +09:00
..
expected Remove assertion for replication origins in PREPARE TRANSACTION 2021-12-14 10:58:15 +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:15 +09:00
t Move Perl test modules to a better namespace 2021-10-24 10:28:19 -04: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 support for prepared transactions to built-in logical replication. 2021-07-14 07:33:50 +05:30