Re: BUG #18055: logical decoding core on AllocateSnapshotBuilder() - Mailing list pgsql-bugs

From Amit Kapila
Subject Re: BUG #18055: logical decoding core on AllocateSnapshotBuilder()
Date
Msg-id CAA4eK1+L-QLPmdwWYJsUmaB_ZHZT-OXoV=meR9cxFWOedYqxLQ@mail.gmail.com
Whole thread Raw
In response to RE: BUG #18055: logical decoding core on AllocateSnapshotBuilder()  ("Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>)
Responses RE: BUG #18055: logical decoding core on AllocateSnapshotBuilder()
List pgsql-bugs
On Fri, Aug 25, 2023 at 9:36 AM Zhijie Hou (Fujitsu)
<houzj.fnst@fujitsu.com> wrote:
>
> On Wednesday, August 23, 2023 4:47 PM Amit Kapila <amit.kapila16@gmail.com> wrote:
> >
> > On Mon, Aug 21, 2023 at 11:57 PM Andres Freund <andres@anarazel.de>
> > wrote:
> > >
> > > -1. This makes things global concerns that shouldn't be.
> > >
> > > If we really need something to clean this up, I'd look at
> > > MemoryContextRegisterResetCallback().
> > >
> >
> > +1. This sounds like a better idea.
>
> Here is a small patch based on this idea.
> I registered the callback under snapshot builder context
> and the callback will reset the variables.
>

LGTM. Unless Andres or Sawada-San thinks otherwise, I would like to
proceed with this fix.

--
With Regards,
Amit Kapila.



pgsql-bugs by date:

Previous
From: Duke Astar
Date:
Subject: Re: BUG #18082: coredump during initdb
Next
From: Daniel Gustafsson
Date:
Subject: Re: BUG #18086: compilation failed due to epoll_create1 not present