pgsql: Refactor WaitLSNType enum to use a macro for type count

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor WaitLSNType enum to use a macro for type count
Date: 2025-12-14 15:20:10
Message-ID: E1vUntJ-000jyE-15@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)gmail(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2025-12-14 16:55:25 pgsql: Add a regression test to verify that NLS translation works.
Previous Message Alexander Korotkov 2025-12-14 14:10:53 pgsql: Fix usage of palloc() in MERGE/SPLIT PARTITION(s) code