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
This commit is contained in:
parent
e546989a26
commit
f81855171f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user