From 554e5369df50f565168172e2539ddf7038db2225 Mon Sep 17 00:00:00 2001 From: Bertrand Drouvot Date: Thu, 12 Feb 2026 09:08:15 +0000 Subject: [PATCH v1 1/5] Replace literal 0 with InvalidMultiXactId for MultiXactId assignments Use the proper constant InvalidMultiXactId instead of literal 0 when assigning MultiXactId variables and struct fields. This improves code clarity by making it explicit that these are invalid MultiXactId values rather than ambiguous zero literals. Author: Bertrand Drouvot Discussion: --- src/bin/pg_resetwal/pg_resetwal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 100.0% src/bin/pg_resetwal/ diff --git a/src/bin/pg_resetwal/pg_resetwal.c b/src/bin/pg_resetwal/pg_resetwal.c index 85dc43d4cdb..697bed096bd 100644 --- a/src/bin/pg_resetwal/pg_resetwal.c +++ b/src/bin/pg_resetwal/pg_resetwal.c @@ -86,7 +86,7 @@ static Oid next_oid_val; static bool mxids_given = false; static MultiXactId next_mxid_val; -static MultiXactId oldest_mxid_val = 0; +static MultiXactId oldest_mxid_val = InvalidMultiXactId; static bool next_mxoff_given = false; static MultiXactOffset next_mxoff_val; -- 2.34.1