agora inbox for pgsql-hackers@postgresql.orghelp / color / mirror / Atom feed
[PATCH v3 3/3] Check for tabs in postgresql.conf.sample. 124+ messages / 1 participants [nested] [flat]
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
* [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. @ 2025-11-17 17:48 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 124+ messages in thread From: Nathan Bossart @ 2025-11-17 17:48 UTC (permalink / raw) The previous commit updated this file to use tabs instead of spaces. This commit adds a test to ensure that no new tabs are added. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/aReNUKdMgKxLqmq7%40nathan --- src/test/modules/test_misc/t/003_check_guc.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 51349e98e93..604280d94d7 100644 --- a/src/test/modules/test_misc/t/003_check_guc.pl +++ b/src/test/modules/test_misc/t/003_check_guc.pl @@ -44,13 +44,21 @@ my $sample_file = "$share_dir/postgresql.conf.sample"; # List of all the GUCs found in the sample file. my @gucs_in_file; +# List of all lines with tabs in the sample files. +my @lines_with_tabs; + # Read the sample file line-by-line, checking its contents to build a list # of everything known as a GUC. my $num_tests = 0; +my $line_num = 0; open(my $contents, '<', $sample_file) || die "Could not open $sample_file: $!"; while (my $line = <$contents>) { + $line_num++; + push @lines_with_tabs, $line_num + if $line =~ /\t/; + # Check if this line matches a GUC parameter: # - Each parameter is preceded by "#", but not "# " in the sample # file. @@ -97,6 +105,8 @@ my @sample_intersect = grep($not_in_sample_hash{$_}, @gucs_in_file); is(scalar(@sample_intersect), 0, "no parameters marked as NOT_IN_SAMPLE in postgresql.conf.sample"); +is(scalar(@lines_with_tabs), 0, "no lines with tabs in postgresql.conf.sample"); + # These would log some information only on errors. foreach my $param (@missing_from_file) { @@ -116,5 +126,9 @@ foreach my $param (@sample_intersect) "found GUC $param in postgresql.conf.sample, marked as NOT_IN_SAMPLE\n" ); } +foreach my $param (@lines_with_tabs) +{ + print("found tab in line $param in postgresql.conf.sample\n"); +} done_testing(); -- 2.39.5 (Apple Git-154) --1rtaHtNFYDnp8wN8-- ^ permalink raw reply [nested|flat] 124+ messages in thread
end of thread, other threads:[~2025-11-17 17:48 UTC | newest] Thread overview: 124+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org> 2025-11-17 17:48 [PATCH v3 3/3] Check for tabs in postgresql.conf.sample. Nathan Bossart <nathan@postgresql.org>
This inbox is served by agora; see mirroring instructions for how to clone and mirror all data and code used for this inbox