Re: [19] CREATE SUBSCRIPTION ... SERVER - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: [19] CREATE SUBSCRIPTION ... SERVER
Date
Msg-id CAA4eK1J4_TNcckZEtkMD1519qDNn3G6eTBefXGbOJXeu_rhQNw@mail.gmail.com
Whole thread Raw
In response to Re: [19] CREATE SUBSCRIPTION ... SERVER  (Álvaro Herrera <alvherre@kurilemu.de>)
Responses Re: [19] CREATE SUBSCRIPTION ... SERVER
List pgsql-hackers
On Wed, Mar 18, 2026 at 11:31 PM Álvaro Herrera <alvherre@kurilemu.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.



pgsql-hackers by date:

Previous
From: Marco Nenciarini
Date:
Subject: Re: BUG: Cascading standby fails to reconnect after falling back to archive recovery
Next
From: Etsuro Fujita
Date:
Subject: Re: Use-after-free issue in postgres_fdw