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 981B653AC5 for ; Thu, 14 Apr 2005 15:49:05 -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 63453-06 for ; Thu, 14 Apr 2005 18:48:57 +0000 (GMT) Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by svr1.postgresql.org (Postfix) with ESMTP id C008D53789 for ; Thu, 14 Apr 2005 15:48:55 -0300 (ADT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-34.mail.demon.net with esmtp (Exim 4.42) id 1DM9OZ-000Pnd-Fd; Thu, 14 Apr 2005 18:48:56 +0000 Received: from [192.168.1.17] (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id D23B3166DA; Thu, 14 Apr 2005 19:48:54 +0100 (BST) Message-ID: <425EBB16.4040900@archonet.com> Date: Thu, 14 Apr 2005 19:48:54 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andreas Joseph Krogh Cc: pgsql-sql@postgresql.org Subject: Re: row-attribute in EXPLAIN-output doesn't match count(*) References: <200504141838.14705.andreak@officenet.no> <425EA496.2030501@archonet.com> <200504141921.38476.andreak@officenet.no> In-Reply-To: <200504141921.38476.andreak@officenet.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.059 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200504/206 X-Sequence-Number: 21099 Andreas Joseph Krogh wrote: > On Thursday 14 April 2005 19:12, Richard Huxton wrote: >> >>So - do you have an application/client that has had a single transaction >>open for a long time. A very long time unless you update this table a lot. > > > Hm, it's a web-app, and I don't hold a transaction open for a long time on > purpose, but I have a line which says "idle in transaction" fromn "ps": > > postgres 2754 1646 0 Apr06 ? 00:00:07 postgres: nbe nbeweb 127.0.0.1 > idle in transaction Some Java systems can open a transaction and leave it there idle. That one's been there since April 6th. > And by the way, I lied about the PG-version, it's 7.4.5, not 8.0.0 > > So, what you're suggesting is that a restart of the webapp should make vacuum > able to delete those dead rows? Exactly. -- Richard Huxton Archonet Ltd