X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E81B8329E55 for ; Sat, 18 Sep 2004 08:24:38 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 45591-04 for ; Sat, 18 Sep 2004 07:24:33 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id A36CF329E49 for ; Sat, 18 Sep 2004 08:24:31 +0100 (BST) Received: (qmail 31566 invoked by uid 1112); 18 Sep 2004 07:24:29 -0000 Date: Sat, 18 Sep 2004 02:24:28 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: John R Pierce Cc: pgsql-jdbc@postgresql.org Subject: Re: "Idle in Transaction" revisited. In-Reply-To: <0e3701c49d19$e8a90230$0200a8c0@hogranch.com> Message-ID: References: <0dfb01c49d0e$5c61c1f0$0200a8c0@hogranch.com> <26344.1095464431@sss.pgh.pa.us> <0e3701c49d19$e8a90230$0200a8c0@hogranch.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/93 X-Sequence-Number: 10983 On Fri, 17 Sep 2004, John R Pierce wrote: > > Yeah, that's from prematurely issuing BEGIN. I believe there's a > > solution for this in the most recent JDBC driver versions --- but > > I dunno if it's in any official releases yet. > > Its my understanding from reading the prior threads on this that somewhere > after jdbc 213 they moved the initial BEGIN to the first SQL Execute rather > than immediately upon Connection. > This change only occured in the 8.0 development branch, and not on the 7.4 branch. I produced a patch and then current versions of the 7.4 jar files for people to try this out on their 7.4 servers, but no one ever got back to me about it, so I didn't apply it because it was a pretty ugly fix that no one seemed to need. See http://www.ejurka.com/pgsql/jars/transaction_state/ > When an app does a Commit or Rollback, this generates an END; > After this END; does a new BEGIN happen immediately, or is it postponed > until the next Execute ? Yes, in the 7.4 branch a BEGIN is issued immediately. Kris Jurka