| From: | Rajesh Kumar Thandapani <rajeshkumarth(at)google(dot)com> |
|---|---|
| To: | "alvherre(at)kurilemu(dot)de" <alvherre(at)kurilemu(dot)de>, Manu <manuelreyesbravo(at)gmail(dot)com> |
| Cc: | Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com>, Bingshuai Li <lucian1412(at)outlook(dot)com>, Zhijie Hou <houzhijie22(at)gmail(dot)com>, "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alexander Lakhin <exclusion(at)gmail(dot)com>, Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, Andrey Rachitskiy <pl0h0yp1(at)gmail(dot)com>, "a(dot)kozhemyakin(at)postgrespro(dot)ru" <a(dot)kozhemyakin(at)postgrespro(dot)ru>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Bug in logical decoding with DDL and subtransactions |
| Date: | 2026-11-23 12:39:34 |
| Message-ID: | CAJoZ81tDiETQHRssm8nfWDxZENToZzeP7SJtpHtY6pD+vE1LNg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Mon, Nov 23, 2026 at 11:43 AM Alvaro Herrera <alvherre(at)kurilemu(dot)de> wrote:
> Hmm, so I'm inclined to do this in master only, as I don't think
> tuplecid lists are very large generally.
Targeting master only makes sense to me.
Re-attaching the v1 patch here on this thread (my earlier message
accidentally dropped In-Reply-To and started a separate thread). On top
of Ayush's snippet and Manu's feedback, it also returns early when
toptxn->tuplecids is empty, adds an Assert in
ReorderBufferAddNewTupleCids() that subxid has RBTXN_HAS_CATALOG_CHANGES
set, and adds the tuplecid_nested.spec permutation with a regular write
in the outer savepoint.
Regards,
Rajesh Kumar Thandapani
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0001-Skip-tuplecid-cleanup-scan-when-aborted-subxacts-.patch | application/x-patch | 6.0 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Maxim Orlov | 2026-11-23 12:44:29 | Re: [PATCH] Add support for INSERT ... SET syntax |
| Previous Message | Dean Rasheed | 2026-11-23 12:32:08 | Re: Fix stale source values in MERGE RETURNING after a cross-partition update |