Skip to content

Commit 2abf130

Browse files
committed
Increase the default value of log_min_messages to WARNING, so that
NOTICE-grade messages are not logged by default. Per pgsql-hackers discussion back on 21-Nov-2007.
1 parent 7953fdc commit 2abf130

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

doc/src/sgml/config.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.168 2008/03/09 04:56:28 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.169 2008/03/10 03:22:29 tgl Exp $ -->
22

33
<chapter Id="runtime-config">
44
<title>Server Configuration</title>
@@ -2582,7 +2582,7 @@ local0.* /var/log/postgresql
25822582
<literal>ERROR</>, <literal>LOG</>, <literal>FATAL</>, and
25832583
<literal>PANIC</>. Each level includes all the levels that
25842584
follow it. The later the level, the fewer messages are sent
2585-
to the log. The default is <literal>NOTICE</>. Note that
2585+
to the log. The default is <literal>WARNING</>. Note that
25862586
<literal>LOG</> has a different rank here than in
25872587
<varname>client_min_messages</>.
25882588
Only superusers can change this setting.

src/backend/utils/misc/guc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Written by Peter Eisentraut <peter_e@gmx.net>.
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.434 2008/03/09 04:56:28 tgl Exp $
13+
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.435 2008/03/10 03:22:29 tgl Exp $
1414
*
1515
*--------------------------------------------------------------------
1616
*/
@@ -209,7 +209,7 @@ bool SQL_inheritance = true;
209209
bool Password_encryption = true;
210210

211211
int log_min_error_statement = ERROR;
212-
int log_min_messages = NOTICE;
212+
int log_min_messages = WARNING;
213213
int client_min_messages = NOTICE;
214214
int log_min_duration_statement = -1;
215215
int log_temp_files = -1;
@@ -1935,7 +1935,7 @@ static struct config_string ConfigureNamesString[] =
19351935
"includes all the levels that follow it.")
19361936
},
19371937
&log_min_messages_str,
1938-
"notice", assign_log_min_messages, NULL
1938+
"warning", assign_log_min_messages, NULL
19391939
},
19401940

19411941
{

src/backend/utils/misc/postgresql.conf.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
# warning
279279
# error
280280

281-
#log_min_messages = notice # values in order of decreasing detail:
281+
#log_min_messages = warning # values in order of decreasing detail:
282282
# debug5
283283
# debug4
284284
# debug3

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy