pgsql: Introduce XLogRecPtrIsValid()

Поиск
Список
Период
Сортировка
От Álvaro Herrera
Тема pgsql: Introduce XLogRecPtrIsValid()
Дата
Msg-id E1vH4c1-005KaV-1Z@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d2965f627fe35bfc9c212528159d95f46b8e83ef

Modified Files
--------------
src/include/access/xlogdefs.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)


В списке pgsql-committers по дате отправления: