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.
This commit is contained in:
Peter Eisentraut 2006-07-26 11:39:47 +00:00
parent 79bc99a467
commit cd2a6b57c0
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>. * Written by Peter Eisentraut <peter_e@gmx.net>.
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.330 2006/07/26 11:35:56 petere Exp $ * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.331 2006/07/26 11:39:47 petere Exp $
* *
*-------------------------------------------------------------------- *--------------------------------------------------------------------
*/ */
@ -5113,7 +5113,7 @@ _ShowOption(struct config_generic * record)
else if (*conf->variable && **conf->variable) else if (*conf->variable && **conf->variable)
val = *conf->variable; val = *conf->variable;
else else
val = "unset"; val = "";
} }
break; break;