Increase the default value of log_min_messages to WARNING, so that
authorTom Lane
Mon, 10 Mar 2008 03:22:29 +0000 (03:22 +0000)
committerTom Lane
Mon, 10 Mar 2008 03:22:29 +0000 (03:22 +0000)
NOTICE-grade messages are not logged by default.  Per pgsql-hackers
discussion back on 21-Nov-2007.

doc/src/sgml/config.sgml
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample

index 677fd4d7bf5b5dab17daeeab5e000c08caa86519..0c2740890da5ef27468c60976194f02cc9c766d3 100644 (file)
@@ -1,4 +1,4 @@
-
+
 
 
   Server Configuration
@@ -2582,7 +2582,7 @@ local0.*    /var/log/postgresql
         ERROR, LOG, FATAL, and
         PANIC.  Each level includes all the levels that
         follow it.  The later the level, the fewer messages are sent
-        to the log.  The default is NOTICE.  Note that
+        to the log.  The default is WARNING.  Note that
         LOG has a different rank here than in
         client_min_messages.
         Only superusers can change this setting.
index 1acf2bc06227b17186e21227eda8d71a82a4dcff..2616c9795357755bcf7cb378f3bbc81c92fca25b 100644 (file)
@@ -10,7 +10,7 @@
  * Written by Peter Eisentraut .
  *
  * IDENTIFICATION
- *   $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.434 2008/03/09 04:56:28 tgl Exp $
+ *   $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.435 2008/03/10 03:22:29 tgl Exp $
  *
  *--------------------------------------------------------------------
  */
@@ -209,7 +209,7 @@ bool        SQL_inheritance = true;
 bool       Password_encryption = true;
 
 int            log_min_error_statement = ERROR;
-int            log_min_messages = NOTICE;
+int            log_min_messages = WARNING;
 int            client_min_messages = NOTICE;
 int            log_min_duration_statement = -1;
 int            log_temp_files = -1;
@@ -1935,7 +1935,7 @@ static struct config_string ConfigureNamesString[] =
                         "includes all the levels that follow it.")
        },
        &log_min_messages_str,
-       "notice", assign_log_min_messages, NULL
+       "warning", assign_log_min_messages, NULL
    },
 
    {
index d3604c2d5c04851fbe432e093059c69ff2620cc1..e5ae0e851885ff6c5f83ee947751fe9ebae08777 100644 (file)
                    #   warning
                    #   error
 
-#log_min_messages = notice     # values in order of decreasing detail:
+#log_min_messages = warning        # values in order of decreasing detail:
                    #   debug5
                    #   debug4
                    #   debug3