diff options
author | Daniel Gustafsson <dgustafsson@postgresql.org> | 2024-10-24 15:20:16 +0200 |
---|---|---|
committer | Daniel Gustafsson <dgustafsson@postgresql.org> | 2024-10-24 15:20:16 +0200 |
commit | f81855171f95c4440d1d9f41bc9e5ac47eafb7a0 (patch) | |
tree | 620d58aac8137f9b34eb660ff4b05d7b40aea59c /src | |
parent | e546989a269d5d73d283901aadcfda8c6d98e87b (diff) | |
download | postgresql-f81855171f95c4440d1d9f41bc9e5ac47eafb7a0.tar.gz postgresql-f81855171f95c4440d1d9f41bc9e5ac47eafb7a0.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/test/modules/test_misc/t/003_check_guc.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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 3ae4bb1cd9d..f4f2f1121aa 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); |