From: Eric Comeau <ecomeau@signiant.com>
To: pgsql-admin@postgresql.org
Subject: Re: How to log canceled SQL statement due to statement timeout
Date: Thu, 14 Apr 2011 06:36:13 -0400
Message-ID: <io6ims$1a00$1@news.hub.org> (raw)
In-Reply-To: <4DA58AEC020000250003C79C@gw.wicourts.gov>
References: <io43kp$1qpj$1@news.hub.org>
<4DA58AEC020000250003C79C@gw.wicourts.gov>
On 11-04-13 12:37 PM, Kevin Grittner wrote:
> Eric Comeau<ecomeau@signiant.com> wrote:
>
>> We currently have statement timeout set
>>
>> statement_timeout = 10800000 # 3 hrs
>>
>> and we receive the following in the postgresql.log
>>
>> [1-1] ERROR: canceling statement due to statement timeout
>>
>> Is there a way to have the SQL statement logged as well?
>
> log_min_error_statement = 'ERROR'
>
> -Kevin
>
This solved the problem. Thanks Kevin.
I was surprised to discover that the default for log_min_error_statement
is PANIC on 8.1, it appears they have changed the default from 8.2+ to
ERROR now.
Eric
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: ecomeau@signiant.com
Subject: Re: How to log canceled SQL statement due to statement timeout
In-Reply-To: <io6ims$1a00$1@news.hub.org>
* 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