X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 1289C9FA089 for ; Mon, 18 Sep 2006 06:21:57 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 70717-02 for ; Mon, 18 Sep 2006 09:21:51 +0000 (UTC) X-Greylist: delayed 00:06:39.904748 by SQLgrey- Received: from pmailunix.pontoserver.com (pmailunix.pontoserver.com [69.93.207.50]) by postgresql.org (Postfix) with SMTP id 6C2C29F9F48 for ; Mon, 18 Sep 2006 06:21:51 -0300 (ADT) Received: (qmail 45932 invoked from network); 18 Sep 2006 09:35:46 -0000 Received: from unknown (HELO ?192.168.0.216?) (81.84.245.185) by pmailunix.pontoserver.com with SMTP; 18 Sep 2006 09:35:46 -0000 Message-ID: <450E639B.5090605@mobicomp.com> Date: Mon, 18 Sep 2006 10:15:07 +0100 From: =?ISO-8859-1?Q?Jo=E3o_Paulo_Ribeiro?= User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Sriram Dandapani CC: pgsql-jdbc@postgresql.org Subject: Re: idle in transaction References: <6992E470F12A444BB787B5C937B9D4DF05DF1974@ca-mail1.cis.local> In-Reply-To: <6992E470F12A444BB787B5C937B9D4DF05DF1974@ca-mail1.cis.local> X-Enigmail-Version: 0.94.0.0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.216 tagged_above=0 required=5 tests=HTML_MESSAGE, HTML_TITLE_EMPTY, MIME_HTML_ONLY X-Spam-Level: X-Archive-Number: 200609/66 X-Sequence-Number: 15784 Hi.

Are you using DODS/Enhydra to manage your database connection pool?
If yes, see my email in the Enhydra mailing list:
http://mail-archive.objectweb.org/dods/2006-05/msg00000.html
http://mail-archive.objectweb.org/dods/2006-06/msg00000.html

The latest DODS dont have this issue anymore. You just use "RollbackOnReset" option.

Bests regards.
João Paulo Ribeiro

Sriram Dandapani wrote:

I use postgres 8.1.2 database and postgres 8.1.404 jdbc driver .

 

I keep seeing “idle in transaction” connections on the postgres box all the time. The application logic closes all connections , so it makes me wonder if the driver is issuing a begin statement after every commit to leave a floating transaction open.

 

This is causing autovacuum to not finish (and hence I have to frequently issue database-wide vacuums to prevent the transaction id wraparound problem)

 

Any help here is appreciated

 

Thanks

 

Sriram



-- 
João Paulo Ribeiro | Senior Software Engineer
jp@mobicomp.com

PHONE: + 351 253 305 250
FAX  : + 351 253 305 250
www.mobicomp.com

________________________________________________________________

About Solutions | Wireless World

CONFIDENTIALITY NOTICE: This message, as well as existing attached files, is confidential and intended exclusively for the individual(s) named as addressees. If you are not the intended recipient, you are kindly requested not to make any use whatsoever of its contents and to proceed to the destruction of the message, thereby notifying the sender.
DISCLAIMER: The sender of this message can not ensure the security of its electronic transmission and consequently does not accept liability for any fact which may interfere with the integrity of its content.