Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id CD2081337BE6 for ; Fri, 10 Dec 2010 18:49:19 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 12548-06 for ; Fri, 10 Dec 2010 22:49:13 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mail.postgresql.org (Postfix) with SMTP id D5EAC1337B99 for ; Fri, 10 Dec 2010 18:49:07 -0400 (AST) Received: (qmail invoked by alias); 10 Dec 2010 22:49:05 -0000 Received: from a88-115-218-165.elisa-laajakaista.fi (EHLO [10.0.0.101]) [88.115.218.165] by mail.gmx.net (mp006) with SMTP; 10 Dec 2010 23:49:05 +0100 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX19V97g0dK5Vt3WBBWexJzTTbrS+OUX7lXYK/Hpd5G bsB7kYEQfBRMl+ Subject: Re: Logging questions From: Peter Eisentraut To: Wells Oliver Cc: pgsql-admin@postgresql.org In-Reply-To: <6BDF410DD500E841A60A6D183F26E26E096BBA11@svrmailbe2.padres.com> References: <6BDF410DD500E841A60A6D183F26E26E096BBA11@svrmailbe2.padres.com> Content-Type: text/plain; charset="UTF-8" Date: Sat, 11 Dec 2010 00:49:04 +0200 Message-ID: <1292021344.9879.4.camel@vanquo.pezone.net> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.909 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201012/79 X-Sequence-Number: 36308 On fre, 2010-12-10 at 10:01 -0800, Wells Oliver wrote: > Hello- a quick question about logging. I'm trying to set logging to the > most minimal level possible. e.g. I really don't want to see the > following kind of thing: > > 2010-12-10 09:59:40 PST FATAL: database "woliver" does not exist > > Because... so what? Some guy forgot to supply the DB name. I've looked > over the logging options in the documentation and they are legion. What > are my key options to reduce logging to the lowest, most vital sort of > messages? The problem is, the distinction of severity is actually not so much about what is important to you the DBA, but what is important to the session process. The above is important to the session process because the session cannot continue after that error. Other, more severe problems will only show up as "error" because the session can continue. So unless you want to set log_min_messages to panic, which pretty much means that by the time you see the message your database system is dead, you probably want to log everything at least on level error or warning and then rely on a log analysis tool and/or other monitoring to work out what is important to you.