From f75754cec54ed0d767676b37908f1e79fe72bf13 Mon Sep 17 00:00:00 2001 From: Hayato Kuroda Date: Wed, 28 Oct 2026 12:08:08 +0900 Subject: [PATCH v7 2/3] Add static_assert() for MAXPG_LSNLEN and MAXPG_LSNCOMPONENT --- src/common/pg_parse_lsn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/pg_parse_lsn.c b/src/common/pg_parse_lsn.c index b6a83b57216..9223f46bd44 100644 --- a/src/common/pg_parse_lsn.c +++ b/src/common/pg_parse_lsn.c @@ -22,6 +22,9 @@ #define MAXPG_LSNCOMPONENT 8 +static_assert(MAXPG_LSNLEN == MAXPG_LSNCOMPONENT * 2 + 1, + "MAXPG_LSNLEN does not match MAXPG_LSNCOMPONENT"); + /* * pg_parse_lsn * -- 2.52.0