1010 * Written by Peter Eisentraut <peter_e@gmx.net>.
1111 *
1212 * IDENTIFICATION
13- * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.497 2009/03/09 14:34:34 petere Exp $
13+ * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.498 2009/04/02 03:51:43 tgl Exp $
1414 *
1515 *--------------------------------------------------------------------
1616 */
@@ -3578,7 +3578,8 @@ ResetAllOptions(void)
35783578if (conf -> assign_hook )
35793579if (!(* conf -> assign_hook ) (conf -> reset_val , true,
35803580PGC_S_SESSION ))
3581- elog (ERROR ,"failed to reset %s" ,conf -> gen .name );
3581+ elog (ERROR ,"failed to reset %s to %d" ,
3582+ conf -> gen .name , (int )conf -> reset_val );
35823583* conf -> variable = conf -> reset_val ;
35833584break ;
35843585}
@@ -3589,7 +3590,8 @@ ResetAllOptions(void)
35893590if (conf -> assign_hook )
35903591if (!(* conf -> assign_hook ) (conf -> reset_val , true,
35913592PGC_S_SESSION ))
3592- elog (ERROR ,"failed to reset %s" ,conf -> gen .name );
3593+ elog (ERROR ,"failed to reset %s to %d" ,
3594+ conf -> gen .name ,conf -> reset_val );
35933595* conf -> variable = conf -> reset_val ;
35943596break ;
35953597}
@@ -3600,7 +3602,8 @@ ResetAllOptions(void)
36003602if (conf -> assign_hook )
36013603if (!(* conf -> assign_hook ) (conf -> reset_val , true,
36023604PGC_S_SESSION ))
3603- elog (ERROR ,"failed to reset %s" ,conf -> gen .name );
3605+ elog (ERROR ,"failed to reset %s to %g" ,
3606+ conf -> gen .name ,conf -> reset_val );
36043607* conf -> variable = conf -> reset_val ;
36053608break ;
36063609}
@@ -3619,7 +3622,8 @@ ResetAllOptions(void)
36193622newstr = (* conf -> assign_hook ) (str , true,
36203623PGC_S_SESSION );
36213624if (newstr == NULL )
3622- elog (ERROR ,"failed to reset %s" ,conf -> gen .name );
3625+ elog (ERROR ,"failed to reset %s to \"%s\"" ,
3626+ conf -> gen .name ,str );
36233627else if (newstr != str )
36243628{
36253629/*
@@ -3639,7 +3643,9 @@ ResetAllOptions(void)
36393643if (conf -> assign_hook )
36403644if (!(* conf -> assign_hook ) (conf -> reset_val , true,
36413645PGC_S_SESSION ))
3642- elog (ERROR ,"failed to reset %s" ,conf -> gen .name );
3646+ elog (ERROR ,"failed to reset %s to %s" ,
3647+ conf -> gen .name ,
3648+ config_enum_lookup_by_value (conf ,conf -> reset_val ));
36433649* conf -> variable = conf -> reset_val ;
36443650break ;
36453651}
@@ -3910,8 +3916,8 @@ AtEOXact_GUC(bool isCommit, int nestLevel)
39103916if (conf -> assign_hook )
39113917if (!(* conf -> assign_hook ) (newval ,
39123918 true,PGC_S_OVERRIDE ))
3913- elog (LOG ,"failed to commit %s" ,
3914- conf -> gen .name );
3919+ elog (LOG ,"failed to commit %s as %d " ,
3920+ conf -> gen .name , ( int ) newval );
39153921* conf -> variable = newval ;
39163922changed = true;
39173923}
@@ -3927,8 +3933,8 @@ AtEOXact_GUC(bool isCommit, int nestLevel)
39273933if (conf -> assign_hook )
39283934if (!(* conf -> assign_hook ) (newval ,
39293935 true,PGC_S_OVERRIDE ))
3930- elog (LOG ,"failed to commit %s" ,
3931- conf -> gen .name );
3936+ elog (LOG ,"failed to commit %s as %d " ,
3937+ conf -> gen .name , newval );
39323938* conf -> variable = newval ;
39333939changed = true;
39343940}
@@ -3944,8 +3950,8 @@ AtEOXact_GUC(bool isCommit, int nestLevel)
39443950if (conf -> assign_hook )
39453951if (!(* conf -> assign_hook ) (newval ,
39463952 true,PGC_S_OVERRIDE ))
3947- elog (LOG ,"failed to commit %s" ,
3948- conf -> gen .name );
3953+ elog (LOG ,"failed to commit %s as %g " ,
3954+ conf -> gen .name , newval );
39493955* conf -> variable = newval ;
39503956changed = true;
39513957}
@@ -3965,8 +3971,8 @@ AtEOXact_GUC(bool isCommit, int nestLevel)
39653971newstr = (* conf -> assign_hook ) (newval , true,
39663972PGC_S_OVERRIDE );
39673973if (newstr == NULL )
3968- elog (LOG ,"failed to commit %s" ,
3969- conf -> gen .name );
3974+ elog (LOG ,"failed to commit %s as \"%s\" " ,
3975+ conf -> gen .name , newval );
39703976else if (newstr != newval )
39713977{
39723978/*
@@ -4004,8 +4010,9 @@ AtEOXact_GUC(bool isCommit, int nestLevel)
40044010if (conf -> assign_hook )
40054011if (!(* conf -> assign_hook ) (newval ,
40064012 true,PGC_S_OVERRIDE ))
4007- elog (LOG ,"failed to commit %s" ,
4008- conf -> gen .name );
4013+ elog (LOG ,"failed to commit %s as %s" ,
4014+ conf -> gen .name ,
4015+ config_enum_lookup_by_value (conf ,newval ));
40094016* conf -> variable = newval ;
40104017changed = true;
40114018}