Re: Use XLogRecPtrIsValid() instead of negated XLogRecPtrIsInvalid
vignesh C <vignesh21@gmail.com>
From: vignesh C <vignesh21@gmail.com>
To: Fujii Masao <masao.fujii@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-04-16T10:55:31Z
Lists: pgsql-hackers
Attachments
- v3-0001-Use-XLogRecPtr-validity-helper-macros-consistentl.patch (application/octet-stream) patch v3-0001
On Thu, 16 Apr 2026 at 09:42, Fujii Masao <masao.fujii@gmail.com> wrote: > > 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? Yes, that seems better, the attached v3 version patch has the changes for the same. Regards, Vignesh
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Use XLogRecPtrIsValid() consistently for WAL position checks
- 2fd84e2226e2 19 (unreleased) landed
-
Use XLogRecPtrIsValid() in various places
- a2b02293bc65 19 (unreleased) cited