diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-01-14 19:18:53 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-01-14 19:18:53 +0000 |
commit | 98c0ebca808aa5aa2dc5ff260cb677ac6ee25439 (patch) | |
tree | 8b406880792d2596d5782f5fd4150e18a6d0d920 /src | |
parent | 5c7671425fc3d423b66ce6308730685c2a7d8a64 (diff) | |
download | postgresql-98c0ebca808aa5aa2dc5ff260cb677ac6ee25439.tar.gz postgresql-98c0ebca808aa5aa2dc5ff260cb677ac6ee25439.zip |
Avoid cluttering the postmaster log with bogus complaints
during transaction abort, per my note from a couple days ago.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/misc/guc.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index a8c9a87bb16..8e5667ffb77 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -10,7 +10,7 @@ * Written by Peter Eisentraut <peter_e@gmx.net>. * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.429 2008/01/01 19:45:54 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.430 2008/01/14 19:18:53 tgl Exp $ * *-------------------------------------------------------------------- */ @@ -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 |