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 52F329FB488 for ; Fri, 1 Sep 2006 12:39:46 -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 99620-01-8 for ; Fri, 1 Sep 2006 12:38:40 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id BE9379FB559 for ; Fri, 1 Sep 2006 11:43:32 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k81EhUu9004028; Fri, 1 Sep 2006 10:43:31 -0400 (EDT) To: Matteo Sgalaberni cc: pgsql-performance@postgresql.org Subject: Re: database bloat,non removovable rows, slow query etc... In-reply-to: <20060901123915.GT2266@sgala.com> References: <20060901123915.GT2266@sgala.com> Comments: In-reply-to Matteo Sgalaberni message dated "Fri, 01 Sep 2006 14:39:15 +0200" Date: Fri, 01 Sep 2006 10:43:30 -0400 Message-ID: <4027.1157121810@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.128 tagged_above=0 required=5 tests=AWL, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200609/2 X-Sequence-Number: 20688 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). regards, tom lane