X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 0AB36D1DD42 for ; Sun, 15 Feb 2004 17:29:08 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 37106-04 for ; Sun, 15 Feb 2004 13:29:07 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 5D974D1DD26 for ; Sun, 15 Feb 2004 13:29:06 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i1FHT2bG009002; Sun, 15 Feb 2004 12:29:03 -0500 (EST) To: "Marc Mitchell" Cc: "'Warren Little'" , pgsql-admin@postgresql.org Subject: Re: idle in transaction In-reply-to: <001501c3f3e6$aa530120$6901a8c0@MarcM8500> References: <001501c3f3e6$aa530120$6901a8c0@MarcM8500> Comments: In-reply-to "Marc Mitchell" message dated "Sun, 15 Feb 2004 11:10:50 -0600" Date: Sun, 15 Feb 2004 12:29:02 -0500 Message-ID: <9001.1076866142@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/227 X-Sequence-Number: 12401 "Marc Mitchell" writes: > So long as the idled transaction isn't holding any locks on any data > resources, I don't know if this condition is a bad thing. It would be > nice to be able to differentiate between a transaction that has been > "declared" but has yet to really begin issuing any statements and take > locks from transactions that are idle "mid-transaction". You guys should probably take this to the pgsql-jdbc list, since that's where the people who know the innards of the JDBC driver hang out. I just saw a patch go by on that list that purports to * Keeps track of the current transaction state. * Prevents starting a new transaction until actually required. so that may address your concern. I'm not enough of a JDBC hacker to be sure though. regards, tom lane