Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit40d5e59

Browse files
committed
Fix 003_check_guc.pl when loading modules with custom GUCs
The test missed that custom GUCs need to be ignored from the list ofparameters that can exist in postgresql.conf.sample. This caused thetest to fail on a server where such a module is loaded, when usingEXTRA_INSTALL and TEMP_CONFIG, for instance.Author: Anton A. MelnikovDiscussion:https://postgr.es/m/fc5509ce-5144-4dac-8d13-21793da44fc5@postgrespro.ruBackpatch-through: 15
1 parentcac169d commit40d5e59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/test/modules/test_misc/t/003_check_guc.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
# Grab the names of all the parameters that can be listed in the
1515
# configuration sample file. config_file is an exception, it is not
1616
# in postgresql.conf.sample but is part of the lists from guc_tables.c.
17+
# Custom GUCs loaded by extensions are excluded.
1718
my$all_params =$node->safe_psql(
1819
'postgres',
1920
"SELECT name
2021
FROM pg_settings
2122
WHERE NOT 'NOT_IN_SAMPLE' = ANY (pg_settings_get_flags(name)) AND
22-
name <> 'config_file'
23+
name <> 'config_file' AND category <> 'Customized Options'
2324
ORDER BY 1");
2425
# Note the lower-case conversion, for consistency.
2526
my@all_params_array =split("\n",lc($all_params));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp