| From: | Rajesh Kumar Thandapani <rajeshkumarth(at)google(dot)com> |
|---|---|
| To: | Manu <manuelreyesbravo(at)gmail(dot)com> |
| Cc: | alvherre(at)kurilemu(dot)de, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, 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 <kuroda(dot)hayato(at)fujitsu(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, 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>, Andrey Rachitskiy <pl0h0yp1(at)gmail(dot)com>, 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-24 06:05:47 |
| Message-ID: | CAJoZ81see-JEgQqBftMq3p4YEdjYmsdNHsP7u2oQD=4+uFdeHg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Mon, Nov 23, 2026 at 8:39 PM Manu <manuelreyesbravo(at)gmail(dot)com> wrote:
> One nit on its commit message: the empty-list return does not make
> pure DML transactions faster than today, since master already does
> nothing with an empty list. What it does is keep the new subxacts[]
> lookups from costing anything there.
Good catch, thanks for testing v1 and pointing that out!
Attached is v2 with the commit message updated to clarify that the
dlist_is_empty(&toptxn->tuplecids) check avoids adding subxacts[] lookup
overhead when there are no tuplecids to clean up (no code changes from
v1).
Thanks Michael and Dilip for taking a look as well.
Regards,
Rajesh Kumar Thandapani
| Attachment | Content-Type | Size |
|---|---|---|
| v2-0001-Skip-tuplecid-cleanup-scan-when-aborted-subxacts-.patch | application/x-patch | 6.1 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Soumyadeep Chakraborty | 2026-11-24 06:22:31 | Re: pg_rewind race condition just after promotion |
| Previous Message | shveta malik | 2026-11-24 05:51:01 | Re: Initial table sync copies the whole table when it is no longer published |