Skip site navigation (1) Skip section navigation (2)

Re: <IDLE> in transaction

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-interfaces(at)postgresql(dot)org, Junaili Lie <junaili(at)gmail(dot)com>,pgsql-general(at)postgresql(dot)org
Subject: Re: <IDLE> in transaction
Date: 2005-08-19 23:06:02
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-generalpgsql-interfaces
On Fri, Aug 19, 2005 at 11:55:19AM -0700, elein wrote:
> I'm cross posting to INTERFACES.  Please follow up
> on INTERFACES and not on general.  Cross posting is evil.

Well, I'm not on -interfaces, so I'll reply to both :-)  I don't worry
too much about crossposting, because a) it's commonplace in PostgreSQL
lists, and b) majordomo can deliver a single copy of the message if you
configure it to do so.

> > Some of these I-i-t connections come and go after a while.
> > Some stick around for DAYS.
> > 
> > If ANYONE has any brilliant ideas as to the source and
> > dare I say correction to this problem, many people, especially
> > myself would be very very happy.

While this is a purely client-side problem, which is the client issuing
a BEGIN right after a COMMIT, we talked about coding around it
server-side, back in the time when I was doing nested transactions.
It didn't get done though.  I think if you push hard enough, somebody
(myself?) may do it for 8.2.

Of course, this is no solution if the client started a transaction, did
some work, and then sat on the connection with the transaction open for
days.  But this is not a common case and is certainly much more broken,
if only because other RDBMS behave more reasonably in the COMMIT-BEGIN

Alvaro Herrera (<alvherre[a]>)
"La persona que no querĂ­a pecar / estaba obligada a sentarse
 en duras y empinadas sillas    / desprovistas, por cierto
 de blandos atenuantes"                          (Patricio Vogel)

In response to


pgsql-interfaces by date

Next:From: eleinDate: 2005-08-20 01:01:40
Subject: Re: <IDLE> in transaction
Previous:From: eleinDate: 2005-08-19 18:55:19
Subject: Re: <IDLE> in transaction

pgsql-general by date

Next:From: Roger HandDate: 2005-08-19 23:11:50
Subject: Upgrade OS from Redhat AS3 (2.4 kernel) to AS4 (2.6) - Advice on keeping PG happy?
Previous:From: Carlos OlivaDate: 2005-08-19 22:32:09
Subject: Re: Installing soundex, metaphone, lenshtein

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group