10
10
* Written by Peter Eisentraut <peter_e@gmx.net>.
11
11
*
12
12
* 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 $
14
14
*
15
15
*--------------------------------------------------------------------
16
16
*/
@@ -3578,7 +3578,8 @@ ResetAllOptions(void)
3578
3578
if (conf -> assign_hook )
3579
3579
if (!(* conf -> assign_hook ) (conf -> reset_val , true,
3580
3580
PGC_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 );
3582
3583
* conf -> variable = conf -> reset_val ;
3583
3584
break ;
3584
3585
}
@@ -3589,7 +3590,8 @@ ResetAllOptions(void)
3589
3590
if (conf -> assign_hook )
3590
3591
if (!(* conf -> assign_hook ) (conf -> reset_val , true,
3591
3592
PGC_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 );
3593
3595
* conf -> variable = conf -> reset_val ;
3594
3596
break ;
3595
3597
}
@@ -3600,7 +3602,8 @@ ResetAllOptions(void)
3600
3602
if (conf -> assign_hook )
3601
3603
if (!(* conf -> assign_hook ) (conf -> reset_val , true,
3602
3604
PGC_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 );
3604
3607
* conf -> variable = conf -> reset_val ;
3605
3608
break ;
3606
3609
}
@@ -3619,7 +3622,8 @@ ResetAllOptions(void)
3619
3622
newstr = (* conf -> assign_hook ) (str , true,
3620
3623
PGC_S_SESSION );
3621
3624
if (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 );
3623
3627
else if (newstr != str )
3624
3628
{
3625
3629
/*
@@ -3639,7 +3643,9 @@ ResetAllOptions(void)
3639
3643
if (conf -> assign_hook )
3640
3644
if (!(* conf -> assign_hook ) (conf -> reset_val , true,
3641
3645
PGC_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 ));
3643
3649
* conf -> variable = conf -> reset_val ;
3644
3650
break ;
3645
3651
}
@@ -3910,8 +3916,8 @@ AtEOXact_GUC(bool isCommit, int nestLevel)
3910
3916
if (conf -> assign_hook )
3911
3917
if (!(* conf -> assign_hook ) (newval ,
3912
3918
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 );
3915
3921
* conf -> variable = newval ;
3916
3922
changed = true;
3917
3923
}
@@ -3927,8 +3933,8 @@ AtEOXact_GUC(bool isCommit, int nestLevel)
3927
3933
if (conf -> assign_hook )
3928
3934
if (!(* conf -> assign_hook ) (newval ,
3929
3935
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 );
3932
3938
* conf -> variable = newval ;
3933
3939
changed = true;
3934
3940
}
@@ -3944,8 +3950,8 @@ AtEOXact_GUC(bool isCommit, int nestLevel)
3944
3950
if (conf -> assign_hook )
3945
3951
if (!(* conf -> assign_hook ) (newval ,
3946
3952
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 );
3949
3955
* conf -> variable = newval ;
3950
3956
changed = true;
3951
3957
}
@@ -3965,8 +3971,8 @@ AtEOXact_GUC(bool isCommit, int nestLevel)
3965
3971
newstr = (* conf -> assign_hook ) (newval , true,
3966
3972
PGC_S_OVERRIDE );
3967
3973
if (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 );
3970
3976
else if (newstr != newval )
3971
3977
{
3972
3978
/*
@@ -4004,8 +4010,9 @@ AtEOXact_GUC(bool isCommit, int nestLevel)
4004
4010
if (conf -> assign_hook )
4005
4011
if (!(* conf -> assign_hook ) (newval ,
4006
4012
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 ));
4009
4016
* conf -> variable = newval ;
4010
4017
changed = true;
4011
4018
}
0 commit comments