Re: Bug in logical decoding with DDL and subtransactions

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: "alvherre(at)kurilemu(dot)de" <alvherre(at)kurilemu(dot)de>
Cc: Manu <manuelreyesbravo(at)gmail(dot)com>, 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>, 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-24 00:15:26
Message-ID: awTXHoF_-auMrbOG@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Nov 23, 2026 at 11:43:52AM +0100, Alvaro Herrera wrote:
> On 2026-Oct-17, Manu wrote:
>> - Saving: it grows as (tuplecid list length) x (DML-only aborts). For short
>> lists it is in the noise -- around 0.1 ms at 1k tuplecids and 100 aborts.
>> It becomes real higher up: 10k/1k is 19 ms -> 3.6 ms, 50k/10k is
>> 1067 ms -> 18 ms, and 100k/10k is 5213 ms -> 36 ms.
>
> Hmm, so I'm inclined to do this in master only, as I don't think
> tuplecid lists are very large generally.

I've read through the suggested patch, and I cannot really get excited
for doing what is an optimization on the back-branches. Targetting
only HEAD sounds fine enough here.

(Note: I've got to look at the original commits pushed for the sake of
this thread for some other work, hence the opinion.)
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Previous Message Prashant Chinnam 2026-11-24 00:09:58 Re: Hash aggregation shows only the last execution's stats for parallel workers