From: | Amit Kapila <akapila(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Fix fetching default toast value during decoding of in-progress |
Date: | 2024-10-07 10:22:57 |
Message-ID: | E1sxktF-002XJW-Lg@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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
Branch
------
REL_16_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/0f0e253dbf9ed60e037e9b90120404e385c8377b
Modified Files
--------------
contrib/test_decoding/expected/stream.out | 22 ++++++++++++++++++++++
contrib/test_decoding/sql/stream.sql | 22 ++++++++++++++++++++++
src/backend/access/index/genam.c | 16 ++++++++++++++++
3 files changed, 60 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Daniel Gustafsson | 2024-10-07 10:44:19 | Re: pgsql: Fix fetching default toast value during decoding of in-progress |
Previous Message | Daniel Gustafsson | 2024-10-07 09:53:01 | pgsql: doc: Quote value in SET NAMES documentation |