Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 0E27437C032 for ; Mon, 29 Sep 2008 14:26:33 -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 91433-03 for ; Mon, 29 Sep 2008 14:26:24 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.226]) by postgresql.org (Postfix) with ESMTP id 1010A37C02C for ; Mon, 29 Sep 2008 14:26:23 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so2021838rvf.43 for ; Mon, 29 Sep 2008 10:26:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=IM18WsgtCXJHp0CuFT6oFaxHg0qP7ID3tBrcCoEFZB8=; b=D/rqmBp4l31teOMRyqY6tZaIZq6A6IkcAtIODtC0782fxIgzRvWe7J2423gcKkyZmC 1+y+UW116wRhGQ8fx/Xor6Ks+Gm7AO5KW27JibWBILIOmx40r27djXzdr2QjEazm3HTH zxungCYZbfHgya4koafDD6xquHPAvLMWUIugE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=KV/VJLnPMswnyZkwJH3syRP4DVJS7sJJDMV1tE5X0lcZQBmYd7eAKaKLXT2fIUHzRD TJZfY5j7QSHCW6S3SsuFrDZzbkGjNGk7mfA5hzq8APBsA6dAyw6TM5cfaxNlg9nbjRwZ KGEzWAvU9MAuPP67wZOBf3OGJIWHyz4two0sE= Received: by 10.141.163.12 with SMTP id q12mr2662351rvo.260.1222709182772; Mon, 29 Sep 2008 10:26:22 -0700 (PDT) Received: by 10.140.248.12 with HTTP; Mon, 29 Sep 2008 10:26:22 -0700 (PDT) Message-ID: Date: Mon, 29 Sep 2008 11:26:22 -0600 From: "Scott Marlowe" To: "Steve Crawford" Subject: Re: Do we need vacuuming when tables are regularly dropped? Cc: "Peter Kovacs" , "Tom Lane" , pgsql-admin@postgresql.org In-Reply-To: <48E10C95.2050207@pinpointresearch.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9815.1222690583@sss.pgh.pa.us> <48E10C95.2050207@pinpointresearch.com> 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/342 X-Sequence-Number: 30435 On Mon, Sep 29, 2008 at 11:12 AM, Steve Crawford wrote: > >>> 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. Also, there was a time when you couldn't do vacuum full on system tables do to locking issues, and had to take the db down to single user mode to do so. Tom, is that still the case?