From: Manu <manuelreyesbravo@gmail.com>
To: alvherre@kurilemu.de <alvherre@kurilemu.de>
Cc: Rajesh Kumar Thandapani <rajeshkumarth@google.com>
Cc: Ayush Tiwari <ayushtiwari.slg01@gmail.com>
Cc: Bingshuai Li <lucian1412@outlook.com>
Cc: Zhijie Hou <houzhijie22@gmail.com>
Cc: Hayato Kuroda (Fujitsu) <kuroda.hayato@fujitsu.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Masahiko Sawada <sawada.mshk@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alexander Lakhin <exclusion@gmail.com>
Cc: Mark Dilger <mark.dilger@enterprisedb.com>
Cc: Andrey Rachitskiy <pl0h0yp1@gmail.com>
Cc: a.kozhemyakin@postgrespro.ru
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Bug in logical decoding with DDL and subtransactions
Date: Mon, 23 Nov 2026 20:39:00 -0300
Message-ID: <179547714076.2402290.16126257887640793565@gmail.com> (raw)
In-Reply-To: <awQYfuikE_OfP9Yi@alvherre.pgsql>
References: <awQYfuikE_OfP9Yi@alvherre.pgsql>
Hi Álvaro,
On Mon, Nov 23, 2026 at 7:43 AM Álvaro Herrera <alvherre@kurilemu.de>
wrote:
> Hmm, so I'm inclined to do this in master only, as I don't think
> tuplecid lists are very large generally.
Agreed. In my tests a CREATE TABLE with 100 columns queues about 110
tuplecids, so a 10k list takes some 90 such tables in one
transaction.
Rajesh's v1 upthread passes the same tests as in October, on current
master:
- test_decoding passes. The new permutation fails on the cmin Assert
if the loop over the subxacts is removed.
- The same 60,000 random transactions decode identically to master,
and the new Assert never fired.
- Without asserts, 50k tuplecids followed by 10k DML-only aborts go
from 1056 ms to 19.5 ms.
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.
Regards,
Manu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: manuelreyesbravo@gmail.com, alvherre@kurilemu.de, rajeshkumarth@google.com, ayushtiwari.slg01@gmail.com, lucian1412@outlook.com, houzhijie22@gmail.com, kuroda.hayato@fujitsu.com, amit.kapila16@gmail.com, sawada.mshk@gmail.com, michael@paquier.xyz, tgl@sss.pgh.pa.us, exclusion@gmail.com, mark.dilger@enterprisedb.com, pl0h0yp1@gmail.com, a.kozhemyakin@postgrespro.ru
Subject: Re: Bug in logical decoding with DDL and subtransactions
In-Reply-To: <179547714076.2402290.16126257887640793565@gmail.com>
References: <awQYfuikE_OfP9Yi@alvherre.pgsql> <179547714076.2402290.16126257887640793565@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox