Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id B1583632CAF for ; Wed, 18 Aug 2010 10:22:11 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 65759-02 for ; Wed, 18 Aug 2010 13:22:03 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 8A891632922 for ; Wed, 18 Aug 2010 10:22:04 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o7IDM22d014514; Wed, 18 Aug 2010 09:22:02 -0400 (EDT) To: Alexandre de Arruda Paes cc: pgsql-performance@postgresql.org Subject: Re: Fwd: Vacuum Full + Cluster + Vacuum full = non removable dead rows In-reply-to: References: Comments: In-reply-to Alexandre de Arruda Paes message dated "Wed, 18 Aug 2010 10:07:17 -0300" Date: Wed, 18 Aug 2010 09:22:02 -0400 Message-ID: <14512.1282137722@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201008/194 X-Sequence-Number: 40037 Alexandre de Arruda Paes writes: > I know the problem with VACUUM FULL and bloated Indexes, but I don't > understand why the table that is not in use by nobody, cant be vacuumed or > clustered to avoid dead tuples. There's an open transaction somewhere that VACUUM is preserving the tuples for. This transaction need not ever have touched the table, or ever intend to touch the table --- but VACUUM cannot know that, so it saves any tuples that the transaction might be entitled to see if it looked. > carmen=# select * from vlocks where relname='tp93t'; select * from > pg_stat_activity where usename='webpa'; You keep on showing us only subsets of pg_stat_activity :-( Also, if you don't see anything in pg_stat_activity, try pg_prepared_xacts. regards, tom lane