Re: [19] CREATE SUBSCRIPTION ... SERVER

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
Cc: Jeff Davis <pgsql(at)j-davis(dot)com>, Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>, Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>, Joe Conway <mail(at)joeconway(dot)com>, "L(dot) pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [19] CREATE SUBSCRIPTION ... SERVER
Date: 2026-03-21 10:55:06
Message-ID: CAA4eK1J4_TNcckZEtkMD1519qDNn3G6eTBefXGbOJXeu_rhQNw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Mar 18, 2026 at 11:31 PM Álvaro Herrera <alvherre(at)kurilemu(dot)de> wrote:
>
> On 2026-Mar-18, Álvaro Herrera wrote:
>
> > On 2026-03-17, Jeff Davis wrote:
> >
> > > Then we have to invent a deep copy for the Subscription, and we've
> > > already seen that the FreeSubscrpition() method was not being
> > > maintained properly.
> >
> > Maybe another possibility would be to use a separate memory context
> > for each subscription, initially making it a child of the transaction
> > context, and then reparenting it as appropriate.
>
> I mean something like this on top of your 0003.
>

+1. This approach and patch looks like a better way to deal with this issue.

--
With Regards,
Amit Kapila.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Etsuro Fujita 2026-03-21 11:40:50 Re: Use-after-free issue in postgres_fdw
Previous Message Marco Nenciarini 2026-03-21 10:52:28 Re: BUG: Cascading standby fails to reconnect after falling back to archive recovery