Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit cd2a6b5

Browse files
committed
When a GUC string variable is not set, print the empty string (in SHOW etc.),
not "unset". An "unset" state doesn't really exist; all variables behave like an empty string value if the string being pointed to has not been initialized.
1 parent 79bc99a commit cd2a6b5

File tree

1 file changed

+2
-2
lines changed
  • src/backend/utils/misc

1 file changed

+2
-2
lines changed

src/backend/utils/misc/guc.c

Lines changed: 2 additions & 2 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.330 2006/07/26 11:35:56 petere Exp $
13+
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.331 2006/07/26 11:39:47 petere Exp $
1414
*
1515
*--------------------------------------------------------------------
1616
*/
@@ -5113,7 +5113,7 @@ _ShowOption(struct config_generic * record)
51135113
else if (*conf->variable && **conf->variable)
51145114
val = *conf->variable;
51155115
else
5116-
val = "unset";
5116+
val = "";
51175117
}
51185118
break;
51195119

0 commit comments

Comments
 (0)