| From: | Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com> |
|---|---|
| To: | "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com> |
| Cc: | Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>, Jiří Kavalík <jiri(dot)kavalik(at)comgate(dot)cz>, Zhijie Hou <houzhijie22(at)gmail(dot)com>, pgsql-bugs <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Streaming decoding fails with "unexpected table_index_fetch_tuple call during logical decoding" when a relation has a TOASTed conbin (follow-up to BUG #18641) |
| Date: | 2026-11-04 12:38:58 |
| Message-ID: | CANhcyEWrEio3oXz1DtL3hk9UKWJTfOR8y5y60AwbVoW95cg9hw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
On Thu, 29 Oct 2026 at 10:22, Hayato Kuroda (Fujitsu)
<kuroda(dot)hayato(at)fujitsu(dot)com> wrote:
>
> Hi Chao,
>
> > I agree with the solution. However, I have a minor concern about the naming.
> > BeginSystemTableScan() and EndSystemTableScan() sound like functions that
> > actually start and end system table scans, whereas they only track sysscan_depth.
> > How about renaming them to TrackSystemTableScanStart() and
> > TrackSystemTableScanEnd() to better reflect their purpose?
>
> +1, PSA new version.
>
Hi Kuroda-san,
I have reviewed and tested the patches.
I am able to reproduce the issue in PG14 to PG18 using the test added
in stream.sql and confirm that the corresponding patches address the
issue.
Patches is applying cleanly on all branches and passed 'make check-world'
I have some minor comments:
1. For all patches: Most of the comments for function in the file
'xact.c' is like of format:
/*
* Function name
*
* Function Description
*/
Maybe we should follow the same for the functions added by these patches?
2. For patches for PG14 to PG18: In logical.c we can remove:
+#include "access/genam.h"
#include "access/xact.h"
In logical.c we only introduced "ResetSystemTableScanState();" and
this function which was declared 'access/xact.h'
logical.c already includes access/xact.h
3. For patches for PG 18 and PG 17: I noticed a unrelated line deletion change:
#include "utils/snapmgr.h"
-
/* ----------------------------------------------------------------
Was it intentional?
4. For patches for PG 14 and PG 15:
+ ALTER TABLE nested_sys_scan_test ALTER COLUMN checked_value set
storage external;
I think we should capitalize 'set storage external;'
Thanks,
Shlok Kyal
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Hayato Kuroda (Fujitsu) | 2026-11-04 13:24:04 | RE: Streaming decoding fails with "unexpected table_index_fetch_tuple call during logical decoding" when a relation has a TOASTed conbin (follow-up to BUG #18641) |
| Previous Message | Dilip Kumar | 2026-11-04 12:28:02 | Re: BUG #19802: MERGE into a partitioned table fails with "SubPlan found with no parent plan" |