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

Commit98c0ebc

Browse files
committed
Avoid cluttering the postmaster log with bogus complaints
during transaction abort, per my note from a couple days ago.
1 parent5c76714 commit98c0ebc

File tree

1 file changed

+11
-1
lines changed
  • src/backend/utils/misc

1 file changed

+11
-1
lines changed

‎src/backend/utils/misc/guc.c

Lines changed: 11 additions & 1 deletion
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.429 2008/01/01 19:45:54 momjian Exp $
13+
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.430 2008/01/14 19:18:53 tgl Exp $
1414
*
1515
*--------------------------------------------------------------------
1616
*/
@@ -4829,6 +4829,16 @@ GUC_complaint_elevel(GucSource source)
48294829
*/
48304830
elevel=IsUnderPostmaster ?DEBUG3 :LOG;
48314831
}
4832+
elseif (source==PGC_S_OVERRIDE)
4833+
{
4834+
/*
4835+
* If we're a postmaster child, this is probably "undo" during
4836+
* transaction abort, so we don't want to clutter the log. There's
4837+
* a small chance of a real problem with an OVERRIDE setting,
4838+
* though, so suppressing the message entirely wouldn't be desirable.
4839+
*/
4840+
elevel=IsUnderPostmaster ?DEBUG5 :LOG;
4841+
}
48324842
elseif (source<PGC_S_INTERACTIVE)
48334843
elevel=LOG;
48344844
else

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp