Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 46BDE1337B83 for ; Wed, 13 Apr 2011 13:37:28 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 21333-07 for ; Wed, 13 Apr 2011 16:37:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 3BD581337B8B for ; Wed, 13 Apr 2011 13:37:21 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Wed, 13 Apr 2011 11:37:20 -0500 Message-Id: <4DA58AEC020000250003C79C@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Wed, 13 Apr 2011 11:37:16 -0500 From: "Kevin Grittner" To: ,"Eric Comeau" Subject: Re: How to log canceled SQL statement due to statement timeout References: In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/126 X-Sequence-Number: 37307 Eric Comeau 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