postgresql/contrib/test_decoding/expected
Amit Kapila 1bf4d92060 Fix assertion failures while processing NEW_CID record in logical decoding.
When the logical decoding restarts from NEW_CID, since there is no
association between the top transaction and its subtransaction, both are
created as top transactions and have the same LSN. This caused the
assertion failure in AssertTXNLsnOrder().

This patch skips the assertion check until we reach the LSN at which we
start decoding the contents of the transaction, specifically
start_decoding_at LSN in SnapBuild. This is okay because we don't
guarantee to make the association between top transaction and
subtransaction until we try to decode the actual contents of transaction.
The ordering of the records prior to the start_decoding_at LSN should have
been checked before the restart.

The other assertion failure is due to the reason that we forgot to track
that we have considered top-level transaction id in the list of catalog
changing transactions that were committed when one of its subtransactions
is marked as containing catalog change.

Reported-by: Tomas Vondra, Osumi Takamichi
Author: Masahiko Sawada, Kuroda Hayato
Reviewed-by: Amit Kapila, Dilip Kumar, Kuroda Hayato, Kyotaro Horiguchi, Masahiko Sawada
Backpatch-through: 10
Discussion: https://postgr.es/m/a89b46b6-0239-2fd5-71a9-b19b1f7a7145%40enterprisedb.com
Discussion: https://postgr.es/m/TYCPR01MB83733C6CEAE47D0280814D5AED7A9%40TYCPR01MB8373.jpnprd01.prod.outlook.com
2022-10-20 09:16:28 +05:30
..
binary.out Message style improvements 2015-10-28 20:38:36 -04:00
catalog_change_snapshot.out Fix assertion failures while processing NEW_CID record in logical decoding. 2022-10-20 09:16:28 +05:30
concurrent_ddl_dml.out Improve display of query results in isolation tests. 2021-06-23 11:12:31 -04:00
ddl.out Stop using spelling "nonexistant". 2019-06-08 10:12:26 -07:00
decoding_in_xact.out Collection of typo fixes. 2015-05-20 16:56:22 +03:00
decoding_into_rel.out Fix crash when logical decoding is invoked from a PL function. 2017-10-06 19:18:58 -04:00
delayed_startup.out Improve display of query results in isolation tests. 2021-06-23 11:12:31 -04:00
messages.out Add required database and origin filtering for logical messages. 2016-04-13 17:38:54 -07:00
mxact.out Improve display of query results in isolation tests. 2021-06-23 11:12:31 -04:00
oldest_xmin.out Improve display of query results in isolation tests. 2021-06-23 11:12:31 -04:00
ondisk_startup.out Improve display of query results in isolation tests. 2021-06-23 11:12:31 -04:00
permissions.out Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
prepared.out Add skip-empty-xacts option to test_decoding for use in the regression tests. 2014-09-01 15:59:44 +02:00
replorigin.out Remove assertion for replication origins in PREPARE TRANSACTION 2021-12-14 10:58:33 +09:00
rewrite.out Fix regression tests to use only global names beginning with "regress_". 2019-06-29 11:09:03 -04:00
slot.out Message style fixes 2019-09-23 13:37:33 +02:00
snapshot_transfer.out Improve display of query results in isolation tests. 2021-06-23 11:12:31 -04:00
spill.out Make contrib/test_decoding regression tests safe for CZ locale. 2016-11-21 20:39:28 -05:00
subxact_without_top.out Improve display of query results in isolation tests. 2021-06-23 11:12:31 -04:00
time.out logical decoding: fix decoding of a commit's commit time. 2016-03-02 23:42:21 -08:00
toast.out WAL log unchanged toasted replica identity key attributes. 2022-02-14 08:27:56 +05:30
truncate.out Force synchronous commit to be enabled for all test_decoding tests. 2018-10-10 13:53:02 -07:00
xact.out Don't propagate a null subtransaction snapshot up to parent transaction. 2016-08-07 13:15:55 -04:00