From: Eric Comeau <ecomeau@signiant.com>
To: pgsql-admin@postgresql.org
Subject: How to log canceled SQL statement due to statement timeout
Date: Wed, 13 Apr 2011 08:06:50 -0400
Message-ID: <io43kp$1qpj$1@news.hub.org> (raw)
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?
We have set the log_min_duration_statement = 5000 to log any SQL
statement that takes longer than 5 secs and this works when the
statement complete.
We are using version 8.1.17
Thanks,
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: <io43kp$1qpj$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