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

Re: postgresql idle

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>,Andrew Sullivan <ajs(at)crankycanuck(dot)ca>,pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: postgresql idle
Date: 2004-04-30 02:27:57
Message-ID: 20040430022757.GX4503@dcc.uchile.cl (view raw or flat)
Thread:
Lists: pgsql-general
On Thu, Apr 29, 2004 at 09:54:08PM -0400, Bruce Momjian wrote:

> Tom Lane wrote:
> > Andrew Sullivan <ajs(at)crankycanuck(dot)ca> writes:
> > > On Thu, Apr 29, 2004 at 03:57:59PM -0400, Andrew Rawnsley wrote:
> > >> I find that some clients (DBVisualizer for one) do exactly that - 
> > >> execute the COMMIT;BEGIN sequence, and leaves idle
> > >> transactions on a consistent basis.
> > 
> > > Almost all the things I've see that set the autocommit behaviour will
> > > also do this.  I suspect it's a pretty common approach.
> > 
> > Yeah.  We agreed in principle awhile back to "fix" this on the backend
> > side by postponing the actual transaction start until the first command
> > after BEGIN.  I looked at this just before 7.4 feature freeze, but
> > decided it wasn't quite trivial and I hadn't time to make it happen.
> > No one's gone back to work on it during the 7.5 cycle either.
> > 
> > Right now I'm not wanting to touch that code since both Alvaro and the
> > 2PC guy have open patches against it...

Actually, my patch is waiting for you to review it ;-)  On the other
hand, since I'm already touching that code, maybe I can include it in my
patch.  Or would you prefer to keep those things separate?

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
You liked Linux a lot when he was just the gawky kid from down the block
mowing your lawn or shoveling the snow. But now that he wants to date
your daughter, you're not so sure he measures up. (Larry Greenemeier)

In response to

Responses

pgsql-general by date

Next:From: Bruce MomjianDate: 2004-04-30 02:31:07
Subject: Re: postgresql idle
Previous:From: Kris JurkaDate: 2004-04-30 02:27:38
Subject: Re: "Idle in Transaction" and hung connections

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