Refactor WaitLSNType enum to use a macro for type count

Alexander Korotkov <akorotkov@postgresql.org>

Commit: b27e48213fbc1d0ff698be4ae5a0eb3e161d9172
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2025-12-14T15:18:32Z
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>

Files

PathChange+/−
src/backend/access/transam/xlogwait.c modified +5 −5
src/include/access/xlogwait.h modified +4 −3