From c43c21255c6bbe31079167846c0d5ac35d421fbc Mon Sep 17 00:00:00 2001
From: jinbinge <jinbinge@126.com>
Date: Sun, 1 Mar 2026 20:52:55 -0500
Subject: [PATCH v2] Standardize hex digit character strings

Replace occurrences of redundant 01234567890ABCDEF with the standard
0123456789ABCDEF in pg_resetwal.c and controldata.c.  No functional
change.

This change is cosmetic only and does not affect functionality. It
improves readability and consistency across the project.
---
 src/bin/pg_resetwal/pg_resetwal.c | 2 +-
 src/bin/pg_upgrade/controldata.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/pg_resetwal/pg_resetwal.c b/src/bin/pg_resetwal/pg_resetwal.c
index ab766c3..31a4658 100644
--- a/src/bin/pg_resetwal/pg_resetwal.c
+++ b/src/bin/pg_resetwal/pg_resetwal.c
@@ -307,7 +307,7 @@ main(int argc, char *argv[])
 				break;
 
 			case 'l':
-				if (strspn(optarg, "01234567890ABCDEFabcdef") != XLOG_FNAME_LEN)
+				if (strspn(optarg, "0123456789ABCDEFabcdef") != XLOG_FNAME_LEN)
 				{
 					pg_log_error("invalid argument for option %s", "-l");
 					pg_log_error_hint("Try \"%s --help\" for more information.", progname);
diff --git a/src/bin/pg_upgrade/controldata.c b/src/bin/pg_upgrade/controldata.c
index aa6e8b4..c70a45f 100644
--- a/src/bin/pg_upgrade/controldata.c
+++ b/src/bin/pg_upgrade/controldata.c
@@ -360,7 +360,7 @@ get_control_data(ClusterInfo *cluster)
 			p = strchr(p, ':');
 			if (p == NULL || strlen(p) <= 1)
 				pg_fatal("%d: controldata retrieval problem", __LINE__);
-			p = strpbrk(p, "01234567890ABCDEF");
+			p = strpbrk(p, "0123456789ABCDEF");
 			if (p == NULL || strlen(p) <= 1)
 				pg_fatal("%d: controldata retrieval problem", __LINE__);
 
-- 
1.8.3.1

