Skip to content

Commit 98c0ebc

Browse files
committed
Avoid cluttering the postmaster log with bogus complaints
during transaction abort, per my note from a couple days ago.
1 parent 5c76714 commit 98c0ebc

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+
else if (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
else if (source < PGC_S_INTERACTIVE)
48334843
elevel = LOG;
48344844
else

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