if (conf->assign_hook)
if (!(*conf->assign_hook) (conf->reset_val, true,
PGC_S_SESSION))
- elog(ERROR, "failed to reset %s", conf->gen.name);
+ elog(ERROR, "failed to reset %s to %d",
+ conf->gen.name, (int) conf->reset_val);
*conf->variable = conf->reset_val;
break;
}
if (conf->assign_hook)
if (!(*conf->assign_hook) (conf->reset_val, true,
PGC_S_SESSION))
- elog(ERROR, "failed to reset %s", conf->gen.name);
+ elog(ERROR, "failed to reset %s to %d",
+ conf->gen.name, conf->reset_val);
*conf->variable = conf->reset_val;
break;
}
if (conf->assign_hook)
if (!(*conf->assign_hook) (conf->reset_val, true,
PGC_S_SESSION))
- elog(ERROR, "failed to reset %s", conf->gen.name);
+ elog(ERROR, "failed to reset %s to %g",
+ conf->gen.name, conf->reset_val);
*conf->variable = conf->reset_val;
break;
}
newstr = (*conf->assign_hook) (str, true,
PGC_S_SESSION);
if (newstr == NULL)
- elog(ERROR, "failed to reset %s", conf->gen.name);
+ elog(ERROR, "failed to reset %s to \"%s\"",
+ conf->gen.name, str);
else if (newstr != str)
{
/*
if (conf->assign_hook)
if (!(*conf->assign_hook) (conf->reset_val, true,
PGC_S_SESSION))
- elog(ERROR, "failed to reset %s", conf->gen.name);
+ elog(ERROR, "failed to reset %s to %s",
+ conf->gen.name,
+ config_enum_lookup_by_value(conf, conf->reset_val));
*conf->variable = conf->reset_val;
break;
}
if (conf->assign_hook)
if (!(*conf->assign_hook) (newval,
true, PGC_S_OVERRIDE))
- elog(LOG, "failed to commit %s",
- conf->gen.name);
+ elog(LOG, "failed to commit %s as %d",
+ conf->gen.name, (int) newval);
*conf->variable = newval;
changed = true;
}
if (conf->assign_hook)
if (!(*conf->assign_hook) (newval,
true, PGC_S_OVERRIDE))
- elog(LOG, "failed to commit %s",
- conf->gen.name);
+ elog(LOG, "failed to commit %s as %d",
+ conf->gen.name, newval);
*conf->variable = newval;
changed = true;
}
if (conf->assign_hook)
if (!(*conf->assign_hook) (newval,
true, PGC_S_OVERRIDE))
- elog(LOG, "failed to commit %s",
- conf->gen.name);
+ elog(LOG, "failed to commit %s as %g",
+ conf->gen.name, newval);
*conf->variable = newval;
changed = true;
}
newstr = (*conf->assign_hook) (newval, true,
PGC_S_OVERRIDE);
if (newstr == NULL)
- elog(LOG, "failed to commit %s",
- conf->gen.name);
+ elog(LOG, "failed to commit %s as \"%s\"",
+ conf->gen.name, newval);
else if (newstr != newval)
{
/*
if (conf->assign_hook)
if (!(*conf->assign_hook) (newval,
true, PGC_S_OVERRIDE))
- elog(LOG, "failed to commit %s",
- conf->gen.name);
+ elog(LOG, "failed to commit %s as %s",
+ conf->gen.name,
+ config_enum_lookup_by_value(conf, newval));
*conf->variable = newval;
changed = true;
}