From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Refactor WaitLSNType enum to use a macro for type count
Date: Sun, 14 Dec 2025 15:20:10 +0000
Message-ID: <E1vUntJ-000jyE-15@gemulon.postgresql.org> (raw)
Refactor WaitLSNType enum to use a macro for type count
Change WAIT_LSN_TYPE_COUNT from an enum sentinel to a macro definition,
in a similar way to IOObject, IOContext, and BackendType enums. Remove
explicit enum value assignments well.
Author: Xuneng Zhou <xunengzhou@gmail.com>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/b27e48213fbc1d0ff698be4ae5a0eb3e161d9172
Modified Files
--------------
src/backend/access/transam/xlogwait.c | 10 +++++-----
src/include/access/xlogwait.h | 7 ++++---
2 files changed, 9 insertions(+), 8 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Refactor WaitLSNType enum to use a macro for type count
In-Reply-To: <E1vUntJ-000jyE-15@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox