From cd2a6b57c05fca107b46a6859926337be1722e47 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 26 Jul 2006 11:39:47 +0000 Subject: [PATCH] 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. --- src/backend/utils/misc/guc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index cf38490d9e..ee05662b58 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -10,7 +10,7 @@ * Written by Peter Eisentraut . * * 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) val = *conf->variable; else - val = "unset"; + val = ""; } break;