From 5d980342fa98f62306a65285f09ae6256662003b Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 14 Jan 2008 19:18:53 +0000 Subject: [PATCH] Avoid cluttering the postmaster log with bogus complaints during transaction abort, per my note from a couple days ago. --- src/backend/utils/misc/guc.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 47c8b6259d..acd0900d96 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -4829,6 +4829,16 @@ GUC_complaint_elevel(GucSource source) */ elevel = IsUnderPostmaster ? DEBUG3 : LOG; } + else if (source == PGC_S_OVERRIDE) + { + /* + * If we're a postmaster child, this is probably "undo" during + * transaction abort, so we don't want to clutter the log. There's + * a small chance of a real problem with an OVERRIDE setting, + * though, so suppressing the message entirely wouldn't be desirable. + */ + elevel = IsUnderPostmaster ? DEBUG5 : LOG; + } else if (source < PGC_S_INTERACTIVE) elevel = LOG; else -- 2.39.5