Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 5D5129FB21D for ; Mon, 30 Oct 2006 14:40:19 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 18330-09 for ; Mon, 30 Oct 2006 18:40:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by postgresql.org (Postfix) with SMTP id 0B8CA9FA4D9 for ; Mon, 30 Oct 2006 14:40:14 -0400 (AST) Received: (qmail 32736 invoked by uid 1112); 30 Oct 2006 18:40:14 -0000 Date: Mon, 30 Oct 2006 13:40:14 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary2.csoft.net To: David Goodenough cc: pgsql-jdbc@postgresql.org Subject: Re: confused about transactions and connection pools In-Reply-To: <200610301117.54932.david.goodenough@btconnect.com> Message-ID: References: <200610301117.54932.david.goodenough@btconnect.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200610/139 X-Sequence-Number: 16022 On Mon, 30 Oct 2006, David Goodenough wrote: > The we get to the second time through the servlet. First thing - no BEGIN > or ROLLBACK, but the code went through a call to connection.setAutoCommit( > false). Secondly this odd statement that I do not recognise id no longer > there. > For each connection the statements BEGIN, ROLLBACK, and COMMIT are only prepared once and after that they are executed again and again. This can be very confusing when looking at the logs which only show the preparation step, but not execution. So even though you can't see them, they're being executed. The 8.2 release will be the first release that can accurately log this usage pattern. Kris Jurka