postgresql/contrib/test_decoding
Amit Kapila efe706e273 Fix fetching default toast value during decoding of in-progress transactions.
During logical decoding of in-progress transactions, we perform the toast
table scan while fetching the default toast value for an attribute. We
forgot to initialize the flag during this scan to indicate that the system
table scan is in progress. We need this flag to ensure that during logical
decoding we never directly access the tableam or heap APIs because we check
for concurrent aborts only in systable_* APIs.

Reported-by: Alexander Lakhin
Author: Takeshi Ideriha, Hou Zhijie
Reviewed-by: Amit Kapila, Hou Zhijie
Backpatch-through: 14
Discussion: https://postgr.es/m/18641-6687273b7f15269d@postgresql.org
2024-10-07 14:45:39 +05:30
..
expected Fix fetching default toast value during decoding of in-progress transactions. 2024-10-07 14:45:39 +05:30
specs Fix possibility of logical decoding partial transaction changes. 2024-07-11 22:48:13 +09:00
sql Fix fetching default toast value during decoding of in-progress transactions. 2024-10-07 14:45:39 +05:30
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
logical.conf Stabilize streaming tests in test_decoding. 2022-04-20 08:48:25 +05:30
Makefile Fix possibility of logical decoding partial transaction changes. 2024-07-11 22:48:13 +09:00
test_decoding.c Add a xid argument to the filter_prepare callback for output plugins. 2021-03-30 10:34:43 +05:30