Skip to content

Commit dfef56a

Browse files
committed
Improve 'failed to initialize' messages.
1 parent e52a980 commit dfef56a

File tree

1 file changed

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

1 file changed

+9
-9
lines changed

src/backend/utils/misc/guc.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* command, configuration file, and command line options.
66
* See src/backend/utils/misc/README for more information.
77
*
8-
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.77 2002/07/31 17:19:52 tgl Exp $
8+
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.78 2002/08/07 17:26:24 tgl Exp $
99
*
1010
* Copyright 2000 by PostgreSQL Global Development Group
1111
* Written by Peter Eisentraut <peter_e@gmx.net>.
@@ -1015,8 +1015,8 @@ InitializeGUCOptions(void)
10151015

10161016
if (conf->assign_hook)
10171017
if (!(*conf->assign_hook) (conf->reset_val, true, false))
1018-
fprintf(stderr, "Failed to initialize %s",
1019-
conf->gen.name);
1018+
fprintf(stderr, "Failed to initialize %s to %d\n",
1019+
conf->gen.name, (int) conf->reset_val);
10201020
*conf->variable = conf->reset_val;
10211021
conf->session_val = conf->reset_val;
10221022
break;
@@ -1029,8 +1029,8 @@ InitializeGUCOptions(void)
10291029
Assert(conf->reset_val <= conf->max);
10301030
if (conf->assign_hook)
10311031
if (!(*conf->assign_hook) (conf->reset_val, true, false))
1032-
fprintf(stderr, "Failed to initialize %s",
1033-
conf->gen.name);
1032+
fprintf(stderr, "Failed to initialize %s to %d\n",
1033+
conf->gen.name, conf->reset_val);
10341034
*conf->variable = conf->reset_val;
10351035
conf->session_val = conf->reset_val;
10361036
break;
@@ -1043,8 +1043,8 @@ InitializeGUCOptions(void)
10431043
Assert(conf->reset_val <= conf->max);
10441044
if (conf->assign_hook)
10451045
if (!(*conf->assign_hook) (conf->reset_val, true, false))
1046-
fprintf(stderr, "Failed to initialize %s",
1047-
conf->gen.name);
1046+
fprintf(stderr, "Failed to initialize %s to %g\n",
1047+
conf->gen.name, conf->reset_val);
10481048
*conf->variable = conf->reset_val;
10491049
conf->session_val = conf->reset_val;
10501050
break;
@@ -1077,8 +1077,8 @@ InitializeGUCOptions(void)
10771077
newstr = (*conf->assign_hook) (str, true, false);
10781078
if (newstr == NULL)
10791079
{
1080-
fprintf(stderr, "Failed to initialize %s",
1081-
conf->gen.name);
1080+
fprintf(stderr, "Failed to initialize %s to '%s'\n",
1081+
conf->gen.name, str);
10821082
}
10831083
else if (newstr != str)
10841084
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy