postgresql/contrib/test_decoding/specs
Amit Kapila 343afa9671 Fix executing invalidation messages generated by subtransactions during decoding.
This problem has been introduced by commit 272248a0c1 where we started
assigning the subtransactions to the top-level transaction when we mark
both the top-level transaction and its subtransactions as containing
catalog changes. After we assign subtransactions to the top-level
transaction, we were not allowed to execute any invalidations associated
with it when we decide to skip the transaction.

The reason to assign the subtransactions to the top-level transaction was
to avoid the assertion failure in AssertTXNLsnOrder() as they have the
same LSN when we sometimes start accumulating transaction changes for
partial transactions after the restart. Now that with commit 64ff0fe4e8,
we skip this assertion check until we reach the LSN at which we start
decoding the contents of the transaction, so, there is no reason for such
an assignment anymore.

The assignment change was introduced in 15 and prior versions but this bug
doesn't exist in branches prior to 14 since we don't add invalidation
messages to subtransactions. We decided to backpatch through 11 for
consistency but not for 10 since its final release is near.

Reported-by: Kuroda Hayato
Author: Masahiko Sawada
Reviewed-by: Amit Kapila
Backpatch-through: 11
Discussion: https://postgr.es/m/TYAPR01MB58660803BCAA7849C8584AA4F57E9%40TYAPR01MB5866.jpnprd01.prod.outlook.com
Discussion: https://postgr.es/m/a89b46b6-0239-2fd5-71a9-b19b1f7a7145%40enterprisedb.com
2022-10-21 10:03:35 +05:30
..
catalog_change_snapshot.spec Fix executing invalidation messages generated by subtransactions during decoding. 2022-10-21 10:03:35 +05:30
concurrent_ddl_dml.spec Do more cleanup of isolation tests for test_decoding 2019-08-24 12:34:37 +09:00
concurrent_stream.spec Fix 'skip-empty-xacts' option in test_decoding for streaming mode. 2020-11-17 12:14:53 +05:30
delayed_startup.spec Introduce logical decoding. 2014-03-03 16:32:18 -05:00
mxact.spec Revert "Logical decoding of sequences" 2022-04-07 20:06:36 +02:00
oldest_xmin.spec Allow non-quoted identifiers as isolation test session/step names. 2021-06-23 18:41:39 -04:00
ondisk_startup.spec Revert "Logical decoding of sequences" 2022-04-07 20:06:36 +02:00
slot_creation_error.spec Close race condition in slot_creation_error.spec. 2022-03-18 18:18:00 -07:00
snapshot_transfer.spec Introduce xid8-based functions to replace txid_XXX. 2020-04-07 12:04:32 +12:00
subxact_without_top.spec Stop demanding that top xact must be seen before subxact in decoding. 2020-02-19 08:15:49 +05:30
twophase_snapshot.spec Add option to enable two_phase commits via pg_create_logical_replication_slot. 2021-03-03 07:34:11 +05:30