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

From: Andreas Joseph Krogh <andreak(at)officenet(dot)no>
To: Markus Schaber <schabi(at)logix-tt(dot)com>
Cc: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>, pgsql-sql(at)postgresql(dot)org
Subject: Re: row-attribute in EXPLAIN-output doesn't match count(*)
Date: 2005-04-15 16:26:47
Message-ID: 200504151826.47587.andreak@officenet.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Friday 15 April 2005 18:22, Markus Schaber wrote:
> Hi, Andreas,
>
> Andreas Joseph Krogh schrieb:
> >>>So, what you're suggesting is that a restart of the webapp should make
> >>>vacuum able to delete those dead rows?
> >>
> >>Yes, but that'll only solve your problem for now. You'll have the
> >>problem again soon. What's keeping open the transaction?
> >
> > Don't know... All my web-apps semm to have *one* line each in "ps" which
> > says "dbuser dbname 127.0.0.1 idle in transaction". Those are
> > java-web-apps which get their connections from a
> > connection-pool(Apache-Commons ConnectionPool), but there is exactly
> > *one* line pr. web-app which has the "idle in transaction" line, even tho
> > they have many connections open each. 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:-)
>
> Could you try the latest postgresql-8.0-311.jdbcX.jar? The current
> versions should solve the idle in transaction problem, the previous ones
> tended to issue BEGIN; just after every COMMIT, so there's always an
> open transaction.

I could, but is it save agains a 7.4.5 version?

--
Andreas Joseph Krogh <andreak(at)officenet(dot)no>
Senior Software Developer / Manager
gpg public_key: http://dev.officenet.no/~andreak/public_key.asc
------------------------+---------------------------------------------+
OfficeNet AS | The most difficult thing in the world is to |
Hoffsveien 17 | know how to do a thing and to watch |
PO. Box 425 Skøyen | somebody else doing it wrong, without |
0213 Oslo | comment. |
NORWAY | |
Phone : +47 22 13 01 00 | |
Direct: +47 22 13 10 03 | |
Mobile: +47 909 56 963 | |
------------------------+---------------------------------------------+

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Markus Schaber 2005-04-15 16:34:47 Re: row-attribute in EXPLAIN-output doesn't match count(*)
Previous Message Markus Schaber 2005-04-15 16:24:15 Re: row-attribute in EXPLAIN-output doesn't match count(*)