From: Jeff Boes <jboes@nexcerpt.com>
To: pgsql-admin@postgresql.org
Subject: How to suppress errors from postmaster log?
Date: Thu, 24 Apr 2003 16:13:54 GMT
Message-ID: <28f335146d8ebdf612da26b61230a0b1@TeraNews> (raw)
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.
--
Jeff Boes vox 269.226.9550 ext 24
Database Engineer fax 269.349.9076
Nexcerpt, Inc. http://www.nexcerpt.com
...Nexcerpt... Extend your Expertise
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: jboes@nexcerpt.com
Subject: Re: How to suppress errors from postmaster log?
In-Reply-To: <28f335146d8ebdf612da26b61230a0b1@TeraNews>
References: <28f335146d8ebdf612da26b61230a0b1@TeraNews>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox