Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2abf130

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-hackersdiscussion back on 21-Nov-2007.
1 parent7953fdc commit2abf130

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 @@ boolSQL_inheritance = true;
209209
boolPassword_encryption= true;
210210

211211
intlog_min_error_statement=ERROR;
212-
intlog_min_messages=NOTICE;
212+
intlog_min_messages=WARNING;
213213
intclient_min_messages=NOTICE;
214214
intlog_min_duration_statement=-1;
215215
intlog_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)

[8]ページ先頭

©2009-2025 Movatter.jp