pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: pgsql-admin@postgresql.org
To: Eric Comeau <ecomeau@signiant.com>
Subject: Re: How to log canceled SQL statement due to statement timeout
Date: Wed, 13 Apr 2011 11:37:16 -0500
Message-ID: <4DA58AEC020000250003C79C@gw.wicourts.gov> (raw)
In-Reply-To: <io43kp$1qpj$1@news.hub.org>
References: <io43kp$1qpj$1@news.hub.org>

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



view thread (3+ messages)  latest in thread

Message-ID: <4DA58AEC020000250003C79C@gw.wicourts.gov>
Permalink:  ../4DA58AEC020000250003C79C@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4DA58AEC020000250003C79C@gw.wicourts.gov

 · 

reply

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: Kevin.Grittner@wicourts.gov, ecomeau@signiant.com
  Subject: Re: How to log canceled SQL statement due to statement timeout
  In-Reply-To: <4DA58AEC020000250003C79C@gw.wicourts.gov>

* 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