Re: just an inconvenience, or.... : failed queries don't appear in the log anymore since v8.?.?

From: Vivek Khera <vivek(at)khera(dot)org>
To: PG-General General <pgsql-general(at)postgresql(dot)org>
Subject: Re: just an inconvenience, or.... : failed queries don't appear in the log anymore since v8.?.?
Date: 2005-12-28 16:45:32
Message-ID: 446D33D9-B26A-4675-8874-90D64AB8B9A7@khera.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Dec 28, 2005, at 9:46 AM, Frank van Vugt wrote:

> I may be overlooking some option here, but somewhere between the v7
> series and
> the current v8.1.1 that I'm using, failed queries stopped being
> logged, only
> the error message appears in the log (config option log_statement =
> all).
>
> I.e. executing
>
> select 1 2;
>
> will result in just the logging of
>
> ERROR: syntax error at or near "2" at character 10
>

You want to set

log_min_error_statement = error

in your postgresql.conf file. The default value of 'panic' seems
less than useful to me.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vivek Khera 2005-12-28 16:48:59 Re: sending mail from Postgres
Previous Message Michael Fuhr 2005-12-28 16:44:03 Re: FW: deleted records