Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 1243C638AB0 for ; Fri, 27 Mar 2009 05:19:27 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 89510-01-2 for ; Fri, 27 Mar 2009 05:19:14 -0300 (ADT) Received: from mx3.hub.org (mx3.hub.org [206.223.169.73]) by mail.postgresql.org (Postfix) with ESMTP id 1C860638914 for ; Fri, 27 Mar 2009 05:19:07 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail128092.authsmtp.net (outmail128092.authsmtp.net [62.13.128.92]) by mx3.hub.org (Postfix) with ESMTP id 3BC0D37BD7D for ; Fri, 27 Mar 2009 05:19:06 -0300 (ADT) Received: from mail-c189.authsmtp.com (mail-c189.authsmtp.com [62.13.128.71]) by punt8.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id n2R86YGI033831; Fri, 27 Mar 2009 08:06:34 GMT Received: from [192.168.0.4] (85-211-223-92.dyn.gotadsl.co.uk [85.211.223.92]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id n2R86XDf068484; Fri, 27 Mar 2009 08:06:34 GMT Subject: Re: display previous query string of idle-in-transaction From: Simon Riggs To: Tatsuhito Kasahara Cc: pgsql-hackers@postgresql.org In-Reply-To: <49CC8524.4090103@oss.ntt.co.jp> References: <49C9F49B.8020003@oss.ntt.co.jp> <1238091273.16568.530.camel@ebony.2ndQuadrant> <49CC75E3.7010101@oss.ntt.co.jp> <1238139418.16568.555.camel@ebony.2ndQuadrant> <49CC8524.4090103@oss.ntt.co.jp> Content-Type: text/plain Date: Fri, 27 Mar 2009 08:07:11 +0000 Message-Id: <1238141231.16568.574.camel@ebony.2ndQuadrant> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Server-Quench: 302bec5c-1aa6-11de-bc7b-001f29070be2 X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadBtFagJbYFhD HGQLW11EUFV7WWV/ aA4fZQBDYEtPQQdo U1ZAQE1QEQdtHhxP WBx8Wh8aA1NGfnZ0 bUIsX3NeXQp5dUQv Fx1RRnAHNDZmdWEe BBVFJVBTIh5Kfh4T aFl/U3NfNGdJBC9q VzwTFhsSEA9kHWxZ QxoVKVsDCV4REyA9 QA0ZVSwyEFcUDz4v NR0gJRYbEg4QPkE/ dFonHE4COhkJAwZC HkZLaF9z X-Authentic-SMTP: 61633235383639.kestrel.dmpriest.net.uk:1378/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200903/1115 X-Sequence-Number: 135793 On Fri, 2009-03-27 at 16:49 +0900, Tatsuhito Kasahara wrote: > Simon Riggs wrote: > >> Does that answer your question ? > > > > Not really. I want to understand the actual problem with > > idle-in-transaction so we can consider all ways to solve it, rather than > > just focus on one method. > "idle in transaction timeout" feature may be one of the ways. > But I have no specific idea about it now. Or take it further back still and think about why "idle in transaction" occurs at all and fix *that*. Maybe not in Postgres at all, possibly in the driver or even higher up client stack. -- Simon Riggs www.2ndQuadrant.com PostgreSQL Training, Services and Support