Re: Unsafe access BufferDescriptors array in BufferGetLSNAtomic() - Mailing list pgsql-hackers

From Richard Guo
Subject Re: Unsafe access BufferDescriptors array in BufferGetLSNAtomic()
Date
Msg-id CAMbWs4-XS3j-ZFqNs=hJhWLLSrZMitA=GD2EwNYY5ebX-oYijQ@mail.gmail.com
Whole thread Raw
In response to Re: Unsafe access BufferDescriptors array in BufferGetLSNAtomic()  (Richard Guo <guofenglinux@gmail.com>)
Responses Re: Unsafe access BufferDescriptors array in BufferGetLSNAtomic()
List pgsql-hackers
On Wed, Feb 19, 2025 at 9:58 AM Richard Guo <guofenglinux@gmail.com> wrote:
> On Wed, Feb 19, 2025 at 9:44 AM Michael Paquier <michael@paquier.xyz> wrote:
> > On Wed, Feb 19, 2025 at 09:36:35AM +0900, Richard Guo wrote:
> > > I plan to push this shortly.  This is arguably a bug, but it hasn't
> > > caused any real issues, and nobody has complained about it until now,
> > > so I don't think it needs to be back-patched.  Any thoughts?
> >
> > I can see a point in doing a backpatch to keep the code consistent
> > across branches, and this avoids incorrect access patterns when
> > copy-pasting this code.
>
> Hmm, fair point.  I will backpatch-through 13.

Done.

Thanks
Richard



pgsql-hackers by date:

Previous
From: Andy Fan
Date:
Subject: Re: Why does exec_simple_query requires 2 snapshots
Next
From: Tom Lane
Date:
Subject: Re: Why does exec_simple_query requires 2 snapshots