mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
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:
@ -56,7 +56,7 @@ while (my $line = <$contents>)
|
|||||||
# file.
|
# file.
|
||||||
# - Valid configuration options are followed immediately by " = ",
|
# - Valid configuration options are followed immediately by " = ",
|
||||||
# with one space before and after the equal sign.
|
# 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.
|
# Lower-case conversion matters for some of the GUCs.
|
||||||
my $param_name = lc($1);
|
my $param_name = lc($1);
|
||||||
|
Reference in New Issue
Block a user