postgresql/contrib/test_decoding
Amit Kapila 022564f60c 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 15:38:45 +05:30
..
expected Fix fetching default toast value during decoding of in-progress transactions. 2024-10-07 15:38:45 +05:30
specs Fix typos and grammar in code comments and docs 2024-09-03 14:49:04 +09:00
sql Fix fetching default toast value during decoding of in-progress transactions. 2024-10-07 15:38:45 +05:30
t Update copyright for 2024 2024-01-03 20:49:05 -05: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:59:55 +05:30
Makefile Fix possibility of logical decoding partial transaction changes. 2024-07-11 22:48:23 +09:00
meson.build Fix possibility of logical decoding partial transaction changes. 2024-07-11 22:48:23 +09:00
test_decoding.c Remove ReorderBufferTupleBuf structure. 2024-01-29 10:37:16 +09:00