]> granicus.if.org Git - postgresql/commitdiff
Improve wording of error message when a postgresql.conf setting is
authorBruce Momjian <bruce@momjian.us>
Fri, 22 Aug 2008 00:20:40 +0000 (00:20 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 22 Aug 2008 00:20:40 +0000 (00:20 +0000)
ignored because it can only be set at server start.

src/backend/utils/misc/guc-file.l
src/backend/utils/misc/guc.c

index 3a1ee2db4eca11dc7a2b8bfb20acd0501694eb83..a95a35d2f75e1d96461b3f8cbd2bab9a83855bf7 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 2000-2008, PostgreSQL Global Development Group
  *
- * $PostgreSQL: pgsql/src/backend/utils/misc/guc-file.l,v 1.55 2008/05/09 15:36:31 petere Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/misc/guc-file.l,v 1.56 2008/08/22 00:20:40 momjian Exp $
  */
 
 %{
@@ -258,8 +258,9 @@ ProcessConfigFile(GucContext context)
                {
                        ereport(elevel,
                                        (errcode(ERRCODE_CANT_CHANGE_RUNTIME_PARAM),
-                                        errmsg("parameter \"%s\" cannot be changed after server start; configuration file change ignored",
-                                                       gconf->name)));
+                                        errmsg("attempted change of parameter \"%s\" ignored",
+                                                       gconf->name),
+                                        errdetail("This parameter cannot be changed after server start.")));
                        continue;
                }
 
index c9fe269326501d3333339ec34fa76ddc01e6c187..dea354187e499a9e824aa329640cc4dc434a2ddd 100644 (file)
@@ -10,7 +10,7 @@
  * Written by Peter Eisentraut <peter_e@gmx.net>.
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.467 2008/08/19 18:30:04 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.468 2008/08/22 00:20:40 momjian Exp $
  *
  *--------------------------------------------------------------------
  */
@@ -4598,16 +4598,18 @@ set_config_option(const char *name, const char *value,
                                if (changeVal && !is_newvalue_equal(record, value))
                                        ereport(elevel,
                                                        (errcode(ERRCODE_CANT_CHANGE_RUNTIME_PARAM),
-                                                        errmsg("parameter \"%s\" cannot be changed after server start; configuration file change ignored",
-                                                                       name)));
+                                                        errmsg("attempted change of parameter \"%s\" ignored",
+                                                                       name),
+                                                        errdetail("This parameter cannot be changed after server start.")));
                                return true;
                        }
                        if (context != PGC_POSTMASTER)
                        {
                                ereport(elevel,
                                                (errcode(ERRCODE_CANT_CHANGE_RUNTIME_PARAM),
-                                                errmsg("parameter \"%s\" cannot be changed after server start",
-                                                               name)));
+                                                errmsg("attempted change of parameter \"%s\" ignored",
+                                                               name),
+                                                errdetail("This parameter cannot be changed after server start.")));
                                return false;
                        }
                        break;