Re: Incorrect logic in XLogNeedsFlush() - Mailing list pgsql-hackers

From Melanie Plageman
Subject Re: Incorrect logic in XLogNeedsFlush()
Date
Msg-id CAAKRu_awiqADBD5403ptbsr6gy8-Z2Qyrc3u6wN6vf70syzjLQ@mail.gmail.com
Whole thread Raw
In response to Re: Incorrect logic in XLogNeedsFlush()  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-hackers
On Tue, Sep 9, 2025 at 9:50 PM Jeff Davis <pgsql@j-davis.com> wrote:
>
> On Tue, 2025-09-09 at 16:29 -0400, Melanie Plageman wrote:
>
> > Though, it seems like LocalMinRecoveryPoint must be getting
> > incorrectly set elsewhere, otherwise this would have guarded us from
> > examining the control file:
>
> I am confused about whether we are discussing "incorrect" or "invalid".

I meant incorrect as in when it was not supposed to be -- not InvalidXLogRecPtr.

But, I've realized I misspoke -- because InRecovery is only true in
the startup process, so

        if (XLogRecPtrIsInvalid(LocalMinRecoveryPoint) && InRecovery)

is false for checkpointer.

- Melanie



pgsql-hackers by date:

Previous
From: Corey Huinker
Date:
Subject: Re: someone else to do the list of acknowledgments
Next
From: Melanie Plageman
Date:
Subject: Re: Incorrect logic in XLogNeedsFlush()