pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: David Goodenough <david.goodenough@btconnect.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: confused about transactions and connection pools
Date: Mon, 30 Oct 2006 13:40:14 -0500 (EST)
Message-ID: <Pine.BSO.4.63.0610301337200.2855@leary2.csoft.net> (raw)
In-Reply-To: <200610301117.54932.david.goodenough@btconnect.com>
References: <200610301117.54932.david.goodenough@btconnect.com>



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




view thread (12+ messages)  latest in thread

Message-ID: <Pine.BSO.4.63.0610301337200.2855@leary2.csoft.net>
Permalink:  ../Pine.BSO.4.63.0610301337200.2855@leary2.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.63.0610301337200.2855@leary2.csoft.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, david.goodenough@btconnect.com
  Subject: Re: confused about transactions and connection pools
  In-Reply-To: <Pine.BSO.4.63.0610301337200.2855@leary2.csoft.net>
  References: <200610301117.54932.david.goodenough@btconnect.com> <Pine.BSO.4.63.0610301337200.2855@leary2.csoft.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox