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

From Markus Schaber
Subject Re: row-attribute in EXPLAIN-output doesn't match count(*)
Date
Msg-id 425FEA48.20805@logix-tt.com
Whole thread Raw
In response to Re: row-attribute in EXPLAIN-output doesn't match count(*)  (Andreas Joseph Krogh <andreak@officenet.no>)
Responses Re: row-attribute in EXPLAIN-output doesn't match count(*)  (Andreas Joseph Krogh <andreak@officenet.no>)
List pgsql-sql
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.

Markus

pgsql-sql by date:

Previous
From: "Dinesh Pandey"
Date:
Subject: Re: send mail from Postgres using PLTCLU language.
Next
From: Markus Schaber
Date:
Subject: Re: row-attribute in EXPLAIN-output doesn't match count(*)