postgresql/src/backend/access
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
..
brin Set query ID in parallel workers for vacuum, BRIN and btree 2024-09-30 08:43:28 +09:00
common Turn a few 'validnsps' static variables into locals 2024-08-06 23:03:43 +03:00
gin Replace gratuitous memmove() with memcpy() 2024-09-11 15:21:36 +02:00
gist Add temporal PRIMARY KEY and UNIQUE constraints 2024-09-17 11:29:30 +02:00
hash Allow _h_indexbuild() to be interrupted. 2024-09-13 16:17:04 -04:00
heap For inplace update durability, make heap_update() callers wait. 2024-09-24 15:25:18 -07:00
index Fix fetching default toast value during decoding of in-progress transactions. 2024-10-07 15:38:45 +05:30
nbtree Set query ID in parallel workers for vacuum, BRIN and btree 2024-09-30 08:43:28 +09:00
rmgrdesc Extend PgStat_HashKey.objid from 4 to 8 bytes 2024-09-18 12:44:15 +09:00
sequence Fix comment thinko in sequence.c 2024-02-27 08:19:39 +09:00
spgist Replace gratuitous memmove() with memcpy() 2024-09-11 15:21:36 +02:00
table Improve Asserts checking relation matching in parallel scans. 2024-09-20 16:37:55 -04:00
tablesample Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
transam Rename PageData to GenericXLogPageData 2024-10-04 12:47:35 +02:00
Makefile Introduce sequence_*() access functions 2024-02-26 16:04:59 +09:00
meson.build Introduce sequence_*() access functions 2024-02-26 16:04:59 +09:00