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

Commite0d6630

Browse files
committed
Fix recent guc comment-to-default patch for custom variables.
1 parentab6aa40 commite0d6630

File tree

1 file changed

+7
-4
lines changed
  • src/backend/utils/misc

1 file changed

+7
-4
lines changed

‎src/backend/utils/misc/guc.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Written by Peter Eisentraut <peter_e@gmx.net>.
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.339 2006/08/1302:22:24 momjian Exp $
13+
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.340 2006/08/1315:37:02 momjian Exp $
1414
*
1515
*--------------------------------------------------------------------
1616
*/
@@ -4082,9 +4082,9 @@ verify_config_option(const char *name, const char *value,
40824082
if (parse_value(elevel,record,value,&source, false,NULL))
40834083
{
40844084
/*
4085-
* Mark recordlike presented in the config file. Be carefull if
4085+
* Mark recordas present in the config file. Be carefull if
40864086
* you use this function for another purpose than config file
4087-
* verification. It causes confusionconfigfile parser.
4087+
* verification. It causes confusionin the config file parser.
40884088
*/
40894089
record->status |=GUC_IN_CONFFILE;
40904090

@@ -5512,7 +5512,10 @@ is_newvalue_equal(struct config_generic *record, const char *newvalue)
55125512
{
55135513
structconfig_string*conf= (structconfig_string*)record;
55145514

5515-
returnstrcmp(*conf->variable,newvalue)==0;
5515+
if (!*conf->variable)/* custom variable with no value yet */
5516+
return false;
5517+
else
5518+
returnstrcmp(*conf->variable,newvalue)==0;
55165519
}
55175520
}
55185521

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp