Re: Db and schema names in logged errors

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: "Karl O(dot) Pinc" <kop(at)meme(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Db and schema names in logged errors
Date: 2005-07-12 14:15:20
Message-ID: 20050712141520.GA84876@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jul 11, 2005 at 07:43:48PM +0000, Karl O. Pinc wrote:
> Is there any way to get the DB and schema name into
> error messages, particularly when the errors
> are logged? I'd like to be able to distinguish
> errors coming from the test databases from those
> coming from the live databases.

To see how logging can be configured, refer to "Error Reporting and
Logging" in the "Server Run-time Environment" chapter of the
documentation. If you're using 8.0 then you might be interested
in the log_line_prefix setting.

http://www.postgresql.org/docs/8.0/static/runtime-config.html#RUNTIME-CONFIG-LOGGING

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ets ROLLAND 2005-07-12 14:16:55 Pb with boolean between MS-Access and PostgreSQl 8.0.3
Previous Message Tom Lane 2005-07-12 14:13:30 Re: index bloat