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

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: row-attribute in EXPLAIN-output doesn't match count(*)
Date: 2005-04-14 19:04:47
Message-ID: 20050414190447.GE28198@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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[(at)]dcc(dot)uchile(dot)cl>)
Voy a acabar con todos los humanos / con los humanos yo acabaré
voy a acabar con todos / con todos los humanos acabaré (Bender)

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Andrew Sullivan 2005-04-14 19:08:18 Re: row-attribute in EXPLAIN-output doesn't match count(*)
Previous Message Andrew Sullivan 2005-04-14 18:56:23 Re: row-attribute in EXPLAIN-output doesn't match count(*)