1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-06 18:42:54 +03:00

Improve wording of error message when a postgresql.conf setting is

ignored because it can only be set at server start.  In particular,
hiding the main reason in the detail message was suboptimal.
This commit is contained in:
Peter Eisentraut
2009-09-17 21:15:18 +00:00
parent 41a40fe4a2
commit 87f4a26e5d
2 changed files with 8 additions and 11 deletions

View File

@@ -4,7 +4,7 @@
*
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/backend/utils/misc/guc-file.l,v 1.60 2009/09/17 20:54:03 petere Exp $
* $PostgreSQL: pgsql/src/backend/utils/misc/guc-file.l,v 1.61 2009/09/17 21:15:18 petere Exp $
*/
%{
@@ -260,9 +260,8 @@ ProcessConfigFile(GucContext context)
{
ereport(elevel,
(errcode(ERRCODE_CANT_CHANGE_RUNTIME_PARAM),
errmsg("attempted change of parameter \"%s\" ignored",
gconf->name),
errdetail("This parameter cannot be changed after server start.")));
errmsg("parameter \"%s\" cannot be changed without restarting the server",
gconf->name)));
continue;
}