]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Use XLogRecPtrIsValid() consistently for WAL position checks
authorFujii Masao <fujii@postgresql.org>
Thu, 16 Apr 2026 14:02:34 +0000 (23:02 +0900)
committerFujii Masao <fujii@postgresql.org>
Thu, 16 Apr 2026 14:02:34 +0000 (23:02 +0900)
commit2fd84e2226e2e1e13f5ad57bec3465488d67e944
treedcfb309eee1de18657164d2383d18899f7c353c0
parent4abcdc1bbebfaeffc072296711e8a2af8d7d7cdf
Use XLogRecPtrIsValid() consistently for WAL position checks

Commit a2b02293bc6 switched various checks to use XLogRecPtrIsValid(),
but later changes reintroduced XLogRecPtrIsInvalid() and direct comparisons
with InvalidXLogRecPtr.

This commit replaces those uses with XLogRecPtrIsValid() for better
readability and consistency.

Author: Vignesh C <vignesh21@gmail.com>
Reviewed-by: Xiaopeng Wang <wxp_728@163.com>
Reviewed-by: Amul Sul <sulamul@gmail.com>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/CALDaNm16knMFtcqyAG3XYSkyagmVXfhaR0T=hau8UTAU0+eLQQ@mail.gmail.com
src/backend/commands/repack_worker.c
src/backend/replication/walreceiver.c
src/bin/pg_waldump/archive_waldump.c