Increase the default value of log_min_messages to WARNING, so that
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 10 Mar 2008 03:22:29 +0000 (03:22 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
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 43c28b8e08352be788e7eeb2828babcec1996c36..21d7f755513c784000522af86bb11188c2c5a85c 100644 (file)
@@ -2582,7 +2582,7 @@ local0.*    /var/log/postgresql
         <literal>ERROR</>, <literal>LOG</>, <literal>FATAL</>, and
         <literal>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 <literal>NOTICE</>.  Note that
+        to the log.  The default is <literal>WARNING</>.  Note that
         <literal>LOG</> has a different rank here than in
         <varname>client_min_messages</>.
         Only superusers can change this setting.
index 3657cf65888ef56486aa0e3a18595528517c0b5b..1f2c6430bccc7fa195cc6fc0e34649f8519a3171 100644 (file)
@@ -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