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

From Tender Wang
Subject Re: Unsafe access BufferDescriptors array in BufferGetLSNAtomic()
Date
Msg-id CAHewXNk6Dq3F7tgAqdjHQz3ZoKyGSAb+sOe4XGOys5Z=e1NYWA@mail.gmail.com
Whole thread Raw
In response to Re: Unsafe access BufferDescriptors array in BufferGetLSNAtomic()  (Richard Guo <guofenglinux@gmail.com>)
List pgsql-hackers


Richard Guo <guofenglinux@gmail.com> 于2025年2月19日周三 10:30写道:
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 for pushing. 

--
Thanks,
Tender Wang

pgsql-hackers by date:

Previous
From: Japin Li
Date:
Subject: Re: test_escape: invalid option -- 'c'
Next
From: Shubham Khanna
Date:
Subject: Re: Enhance 'pg_createsubscriber' to retrieve databases automatically when no database is provided.