Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 7238E37BA3A for ; Mon, 29 Sep 2008 14:12:59 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 87955-07 for ; Mon, 29 Sep 2008 14:12:56 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from polaris.pinpointresearch.com (66-7-238-130.static-ip.telepacific.net [66.7.238.130]) by postgresql.org (Postfix) with ESMTP id A01E237B9D9 for ; Mon, 29 Sep 2008 14:12:56 -0300 (ADT) Received: from [192.168.1.179] (betelgeuse.pinpointresearch.com [192.168.1.179]) by polaris.pinpointresearch.com (Postfix) with ESMTP id 09AAFE00EC82; Mon, 29 Sep 2008 10:12:53 -0700 (PDT) Message-ID: <48E10C95.2050207@pinpointresearch.com> Date: Mon, 29 Sep 2008 10:12:53 -0700 From: Steve Crawford User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: Peter Kovacs CC: Tom Lane , pgsql-admin@postgresql.org Subject: Re: Do we need vacuuming when tables are regularly dropped? References: <9815.1222690583@sss.pgh.pa.us> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/341 X-Sequence-Number: 30434 >> What it sounds like to me is that you're not vacuuming the system >> catalogs, which are getting bloated with dead rows about all those >> dropped tables. >> > > Wow, great! > > It is not immediately clear from the documentation, but the VACUUM > command also deals with the system catalogs as well, correct? > > To expand on Tom's answer, rows in system tables are created not only for tables but for each column in the table, rules, indexes, etc. You can end up with a lot more row creation than you suspect. And temporary tables bloat the system tables just like regular tables. We discovered that cron scripts using temporary tables can cause very rapid system-table blotage. Cheers, Steve