Re: Use XLogRecPtrIsValid() instead of negated XLogRecPtrIsInvalid - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Use XLogRecPtrIsValid() instead of negated XLogRecPtrIsInvalid
Date
Msg-id CAHGQGwGFP1AEQ1+=95LrVpUUOOPeebi13aEXXebSZ7bvWVT=wA@mail.gmail.com
Whole thread
In response to Re: Use XLogRecPtrIsValid() instead of negated XLogRecPtrIsInvalid  (vignesh C <vignesh21@gmail.com>)
Responses Re: Use XLogRecPtrIsValid() instead of negated XLogRecPtrIsInvalid
Re: Use XLogRecPtrIsValid() instead of negated XLogRecPtrIsInvalid
List pgsql-hackers
On Mon, Apr 13, 2026 at 4:10 PM vignesh C <vignesh21@gmail.com> wrote:
> I felt these also should be updated, the attached v2 version patch
> includes the changes for the same.

Thanks for updating the patch!

-       applyPtr = (latestApplyPtr == InvalidXLogRecPtr) ?
+       applyPtr = (XLogRecPtrIsInvalid(latestApplyPtr)) ?

XLogRecPtrIsValid() should be used here, instead?

Regards,

--
Fujii Masao



pgsql-hackers by date:

Previous
From: Chao Li
Date:
Subject: Re: Use proc_exit() in WalRcvWaitForStartPosition
Next
From: Haibo Yan
Date:
Subject: Re: Implement missing join selectivity estimation for range types