v8-0001-Handle-alphanumeric-characters-in-matching-GUC-na.patch

application/octet-stream

Filename: v8-0001-Handle-alphanumeric-characters-in-matching-GUC-na.patch
Type: application/octet-stream
Part: 3
Message: Re: Add support to TLS 1.3 cipher suites and curves lists

Patch

Format: format-patch
Series: patch v8-0001
Subject: Handle alphanumeric characters in matching GUC names
File+
src/test/modules/test_misc/t/003_check_guc.pl 1 1
From 1c4b3d4ecf148702d563dc6e457c315884edf387 Mon Sep 17 00:00:00 2001
From: Daniel Gustafsson <dgustafsson@postgresql.org>
Date: Tue, 15 Oct 2024 12:22:35 +0200
Subject: [PATCH v8 1/4] Handle alphanumeric characters in matching GUC names

The check for whether all GUCs are present in the sample config
file used the POSIX character class :alpha: which corresponds to
alphabet and not alphanumeric. Since GUC names can contain digits
as well we need to use the :alnum: character class instead.

Author: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/2CB04559-B1D8-4558-B6F0-8F09093D629F@yesql.se
---
 src/test/modules/test_misc/t/003_check_guc.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/modules/test_misc/t/003_check_guc.pl b/src/test/modules/test_misc/t/003_check_guc.pl
index 3ae4bb1cd9..f4f2f1121a 100644
--- a/src/test/modules/test_misc/t/003_check_guc.pl
+++ b/src/test/modules/test_misc/t/003_check_guc.pl
@@ -56,7 +56,7 @@ while (my $line = <$contents>)
 	# file.
 	# - Valid configuration options are followed immediately by " = ",
 	# with one space before and after the equal sign.
-	if ($line =~ m/^#?([_[:alpha:]]+) = .*/)
+	if ($line =~ m/^#?([_[:alnum:]]+) = .*/)
 	{
 		# Lower-case conversion matters for some of the GUCs.
 		my $param_name = lc($1);
-- 
2.39.3 (Apple Git-146)