X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id E8B0F9FB512 for ; Fri, 1 Sep 2006 15:41:43 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 16374-06 for ; Fri, 1 Sep 2006 15:40:26 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (mail.logix-tt.com [212.211.145.186]) by postgresql.org (Postfix) with ESMTP id 33DE89FB5A8 for ; Fri, 1 Sep 2006 13:09:32 -0300 (ADT) Received: from kingfisher.intern.logix-tt.com (p549D1A3C.dip0.t-ipconnect.de [84.157.26.60]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id 21D90656CB; Fri, 1 Sep 2006 18:11:42 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id 41F43183FE08D; Fri, 1 Sep 2006 18:09:32 +0200 (CEST) Message-ID: <44F85B3B.6080106@logix-tt.com> Date: Fri, 01 Sep 2006 18:09:31 +0200 From: Markus Schaber Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Thunderbird 1.5.0.5 (X11/20060812) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Cc: Matteo Sgalaberni Subject: Re: database bloat,non removovable rows, slow query etc... References: <20060901123915.GT2266@sgala.com> <4027.1157121810@sss.pgh.pa.us> In-Reply-To: <4027.1157121810@sss.pgh.pa.us> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.175 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200609/4 X-Sequence-Number: 20690 Hi, Tom and Matteo, Tom Lane wrote: > Matteo Sgalaberni writes: >> 22 daemons that have a persistent connection to this database(all >> connection are in "idle"(no transaction opened). > > You may think that, but you are wrong. > >> INFO: "cliente": found 0 removable, 29931 nonremovable row versions in 559 pages >> DETAIL: 29398 dead row versions cannot be removed yet. > > The only way the above can happen is if there are some fairly old open > transactions. Looking in pg_stat_activity might help you identify the > culprit(s). Another possibility might be an outstanding two-phase-commit transaction. HTH, Markus -- Markus Schaber | Logical Tracking&Tracing International AG Dipl. Inf. | Software Development GIS Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org