X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DDEB053DE9 for ; Thu, 14 Apr 2005 14:54:24 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 34843-02 for ; Thu, 14 Apr 2005 17:54:21 +0000 (GMT) Received: from krogh.officenet.no (unknown [128.39.244.194]) by svr1.postgresql.org (Postfix) with ESMTP id F30E253B8A for ; Thu, 14 Apr 2005 14:54:19 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by krogh.officenet.no (Postfix) with ESMTP id 672BAFC604; Thu, 14 Apr 2005 19:54:21 +0200 (CEST) From: Andreas Joseph Krogh Organization: OfficeNet AS To: Andrew Sullivan Subject: Re: row-attribute in EXPLAIN-output doesn't match count(*) Date: Thu, 14 Apr 2005 19:54:19 +0200 User-Agent: KMail/1.8 Cc: pgsql-sql@postgresql.org References: <200504141838.14705.andreak@officenet.no> <200504141921.38476.andreak@officenet.no> <20050414173358.GB9027@phlogiston.dyndns.org> In-Reply-To: <20050414173358.GB9027@phlogiston.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200504141954.20520.andreak@officenet.no> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200504/205 X-Sequence-Number: 21098 On Thursday 14 April 2005 19:33, Andrew Sullivan wrote: > On Thu, Apr 14, 2005 at 07:21:38PM +0200, Andreas Joseph Krogh wrote: > > 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 sa= ys=20 "dbuser dbname 127.0.0.1 idle in transaction". Those are java-web-apps whic= h=20 get their connections from a connection-pool(Apache-Commons ConnectionPool)= ,=20 but there is exactly *one* line pr. web-app which has the "idle in=20 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=20 transaction? I realize now that I should probably ask that question on the= =20 pgsql-jdbc-list:-) But thanks a lot for helping me finding the problem, appreciate it! =2D-=20 Andreas Joseph Krogh Senior Software Developer / Manager gpg public_key: http://dev.officenet.no/~andreak/public_key.asc =2D-----------------------+---------------------------------------------+ 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=F8yen | 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 | | =2D-----------------------+---------------------------------------------+