Re: Add a hook for handling logical decoding messages on subscribers.

From: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
To: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Cc: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, Zhijie Hou <houzhijie22(at)gmail(dot)com>, Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add a hook for handling logical decoding messages on subscribers.
Date: 2026-11-12 10:06:02
Message-ID: avWPil2vQXgXQBn+@bdtpg
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Sorry for joining this discussion so late.

On Thu, Nov 12, 2026 at 03:02:44PM +0530, Amit Kapila wrote:
> On Thu, Nov 12, 2026 at 4:10 AM Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> wrote:
> >
> > On Mon, Nov 9, 2026 at 5:21 PM Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> wrote:
> > >
> > > I've attached the new patches. I just updated the commit message for
> > > the 0001 patch, and added some fixes and regression tests for the 0002
> > > patch. Please review them.
> >
> > I think the 0001 patch can be pushed independently. So I'm going to
> > push it to master, barring objections.
> >
>
> Few comments on 0001:
> * As we are planning this as a master-only change, will it be better
> if we just pass subxid as a separate parameter to keep the interface
> consistent with other similar interfaces and avoid the need for
> plugins to retrieve toptxn separately.

+1. That would also prevent the crash mentioned in the commit message, as txn
would remain the top level transaction.

Regards,

--
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message João Rito 2026-11-12 10:12:32 Re: WAL summarizer after promotion at a recovery target (v4, CF entry 7592)
Previous Message Dean Rasheed 2026-11-12 09:58:28 Re: [PG19] Wrong results from NOT NULL-based expression simplification