postgresql/src
Álvaro Herrera 06edbed478
Introduce XLogRecPtrIsValid()
XLogRecPtrIsInvalid() is inconsistent with the affirmative form of
macros used for other datatypes, and leads to awkward double negatives
in a few places.  This commit introduces XLogRecPtrIsValid(), which
allows code to be written more naturally.

This patch only adds the new macro.  XLogRecPtrIsInvalid() is left in
place, and all existing callers remain untouched.  This means all
supported branches can accept hypothetical bug fixes that use the new
macro, and at the same time any code that compiled with the original
formulation will continue to silently compile just fine.

Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Backpatch-through: 13
Discussion: https://postgr.es/m/aQB7EvGqrbZXrMlg@ip-10-97-1-34.eu-west-3.compute.internal
2025-11-06 19:08:29 +01:00
..
backend Disallow generated columns in COPY WHERE clause 2025-11-06 13:54:42 +01:00
bin Refer readers of \? to "\? variables" for pset options 2025-11-06 15:50:04 +01:00
common Use C11 char16_t and char32_t for Unicode code points. 2025-10-29 14:17:13 -07:00
fe_utils Add \pset options for boolean value display 2025-11-03 17:40:39 +01:00
include Introduce XLogRecPtrIsValid() 2025-11-06 19:08:29 +01:00
interfaces libpq: Improve error handling in passwordFromFile() 2025-11-04 20:12:48 +09:00
makefiles Remove traces of support for Sun Studio compiler 2025-09-12 07:39:05 +02:00
pl Avoid memory leak in validation of a PL/Python trigger function. 2025-10-23 14:23:26 -04:00
port Fix POSIX compliance in pgwin32_unsetenv() for "name" argument 2025-10-21 08:05:28 +09:00
template Remove traces of support for Sun Studio compiler 2025-09-12 07:39:05 +02:00
test Disallow generated columns in COPY WHERE clause 2025-11-06 13:54:42 +01:00
timezone Generate GUC tables from .dat file 2025-09-03 09:45:17 +02:00
tools ci: Improve OpenBSD core dump backtrace handling. 2025-11-06 21:14:05 +13:00
tutorial Fix compile of src/tutorial/funcs.c 2025-10-07 10:45:57 +02:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Remove traces of support for Sun Studio compiler 2025-09-12 07:39:05 +02:00
Makefile.shlib Use exported symbols list on macOS for loadable modules as well 2025-06-10 07:04:43 +02:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
nls-global.mk Fix update-po for the PGXS case 2025-10-16 20:21:05 +02:00