X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 09457475E9D for ; Thu, 24 Apr 2003 12:13:55 -0400 (EDT) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id B1C58474E42 for ; Thu, 24 Apr 2003 12:13:50 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id 9BDD843A89E; Thu, 24 Apr 2003 12:13:50 -0400 (EDT) X-Abuse-Report: abuse@teranews.com Message-ID: <28f335146d8ebdf612da26b61230a0b1@TeraNews> Date: Thu, 24 Apr 2003 16:13:54 GMT Lines: 22 From: Jeff Boes Subject: How to suppress errors from postmaster log? X-Newsgroups: comp.databases.postgresql.admin Organization: Nexcerpt, Inc. User-Agent: Pan/0.11.4 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Comment-To: ALL To: pgsql-admin@postgresql.org Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, hits=-5.8 required=5.0 tests=BAYES_10,USER_AGENT version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/340 X-Sequence-Number: 8495 I've got a Perl routine that makes use of the DBI to do time expression conversion. As it accepts several different input formats, it resolves to evaluating the expression in one of several different ways, ordered by a heuristic to get the "most likely" format first. However, as a side effect I get messages like these in my postmaster log file: ERROR: Bad timestamp external representation '45 minutes' I'd like to suppress these, because the appearance of so many ERROR entries confuses anyone skimming the log. (The DBI layer already suppresses the appearance of the messages in my STDERR file, but they still show up in the postmaster log.) Obviously, I could write better heuristics, so that the "right" format was always tried first. I'm looking for the easy way out ... some way to tell Postgres not to report "trivial" errors like this. --=20 Jeff Boes vox 269.226.9550 ext 24 Database Engineer fax 269.349.9076 Nexcerpt, Inc. http://www.nexcerpt.com ...Nexcerpt... Extend your Expertise