Re: row-attribute in EXPLAIN-output doesn't match count(*) - Mailing list pgsql-sql

From Alvaro Herrera
Subject Re: row-attribute in EXPLAIN-output doesn't match count(*)
Date
Msg-id 20050414190447.GE28198@dcc.uchile.cl
Whole thread Raw
In response to Re: row-attribute in EXPLAIN-output doesn't match count(*)  (Andrew Sullivan <ajs@crankycanuck.ca>)
Responses Re: row-attribute in EXPLAIN-output doesn't match count(*)  (Andrew Sullivan <ajs@crankycanuck.ca>)
Re: row-attribute in EXPLAIN-output doesn't match count(*)  (Carlos Moreno <moreno@mochima.com>)
List pgsql-sql
On Thu, Apr 14, 2005 at 02:56:23PM -0400, Andrew Sullivan wrote:
> On Thu, Apr 14, 2005 at 07:54:19PM +0200, Andreas Joseph Krogh wrote:
> > Any hints on how I can find out what's keeping the connection idle in a 
> > transaction? I realize now that I should probably ask that question on the 
> > pgsql-jdbc-list:-)
> 
> Nope.  That's a problem with your pool software.  It's no doubt
> issuing "BEGIN;" as soon as it connects.  It's BAD (broken as
> designed) in that case.  You need to convince it not to do that, or
> else you need to go around and kill -2 such connections from time to
> time.

It is a Postgres limitation as well.  We _could_ make the server "really
start the transaction" at the point the first query is issued instead of
when the BEGIN is issued.  In fact this problem would go away if we did
that.

-- 
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
Voy a acabar con todos los humanos / con los humanos yo acabaré
voy a acabar con todos / con todos los humanos acabaré (Bender)


pgsql-sql by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: row-attribute in EXPLAIN-output doesn't match count(*)
Next
From: Andrew Sullivan
Date:
Subject: Re: row-attribute in EXPLAIN-output doesn't match count(*)