From: Paul Thomas <paul@tmsl.demon.co.uk>
To: Jeffrey Tenny <jeffrey.tenny@comcast.net>
Cc: pgsql-jdbc @ postgresql . org <pgsql-jdbc@postgresql.org>
Subject: Re: "Idle in Transaction" revisited.
Date: Sun, 19 Sep 2004 10:47:38 +0100
Message-ID: <20040919104738.A15801@bacon> (raw)
In-Reply-To: <414CAFC9.9090908@comcast.net>
References: <414CAFC9.9090908@comcast.net>
On 18/09/2004 22:59 Jeffrey Tenny wrote:
> [snip]
> I'm still running against 7.3.x, but if the above two paragraphs
> are true that's very problematic for me if I'm going to upgrade.
> My app also runs 24/7 and uses serializable transactions in pooled
> connections.
>
> Are you saying that I will see stale database state at the logical
> "start" of my transaction from a pooled connection?
>
> That's a showstopper for sure. If I'm confused please enlighten me.
> I've been holding off on upgrading because of the amount activity on this
> list about 7.4+ systems.
>
> This is the first thing that's been sufficiently integrity threatening
> that it prompted me to de-lurk. I need data as of when the transaction
> starts, not when the database last committed a transaction via that
> connection.
Our web app deploys on 7.3 and 7.4. There's no problem with the 7.3
db/driver but you could be bitten using the 7.4 driver. My solution is to
always setAutoCommit(true) before returning the connection to the pool.
HTH
--
Paul Thomas
+------------------------------+-------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for Business |
| Computer Consultants | http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+-------------------------------------------+
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: paul@tmsl.demon.co.uk, jeffrey.tenny@comcast.net
Subject: Re: "Idle in Transaction" revisited.
In-Reply-To: <20040919104738.A15801@bacon>
References: <414CAFC9.9090908@comcast.net> <20040919104738.A15801@bacon>
* 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