Re: BUG #19556: Segmentation fault in test_decoding

From: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
To: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Cc: a(dot)kozhemyakin(at)postgrespro(dot)ru, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19556: Segmentation fault in test_decoding
Date: 2026-07-27 21:28:04
Message-ID: CAD21AoAshLy0Ut08TkaGVdjSHWSA4Y5twcLqy8+jfLPfRYxWQw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, Jul 23, 2026 at 11:24 AM Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> wrote:
>
> On Wed, Jul 22, 2026 at 11:50 PM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
> >
> > On Thu, Jul 23, 2026 at 7:47 AM Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> wrote:
> > >
> > > Thank you for the patch. I like the approach the proposed patch does.
> > > I've made a patch for PG18+ that fixes both issues with regression
> > > tests. For PG17 or earlier, the patch doesn't need the changes in
> > > ReorderBufferPrepare() but has the same regression tests.
> > >
> >
> > The patch LGTM. One minor point: Shall we retain the earlier comments
> > (We send the prepare for the concurrently aborted xacts so that later
> > when rollback prepared is decoded and sent, the downstream should be
> > able to rollback such a xact. See comments atop DecodePrepare.)? This
> > makes it clear why we are sending prepare for concurrent abort cases.
>
> Thank you for reviewing the 0001 patch! Yes, I agree to retain the
> comment. I'll update the patch and push it early next week.
>

I prepared the patches for all branches. I'm going to push them
tomorrow if there is no further comment.

Regards,

--
Masahiko Sawada
Amazon Web Services: https://aws.amazon.com

Attachment Content-Type Size
REL14_v2-0001-Fix-logical-decoding-of-empty-prepared-transactio.patch text/x-patch 5.6 KB
REL15_v2-0001-Fix-logical-decoding-of-empty-prepared-transactio.patch text/x-patch 7.7 KB
REL18_v2-0001-Fix-logical-decoding-of-empty-prepared-transactio.patch text/x-patch 8.6 KB
REL16_v2-0001-Fix-logical-decoding-of-empty-prepared-transactio.patch text/x-patch 7.7 KB
REL17_v2-0001-Fix-logical-decoding-of-empty-prepared-transactio.patch text/x-patch 7.7 KB
REL19_v2-0001-Fix-logical-decoding-of-empty-prepared-transactio.patch text/x-patch 8.6 KB
master_v2-0001-Fix-logical-decoding-of-empty-prepared-transactio.patch text/x-patch 8.6 KB

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message David Rowley 2026-07-28 00:38:37 Re: BUG #19579: Wrong results regression
Previous Message Zsolt Parragi 2026-07-27 21:20:52 Re: REPACK (CONCURRENTLY) doesn't handle invalid indexes