Re: Do we need vacuuming when tables are regularly dropped? - Mailing list pgsql-admin

From Scott Marlowe
Subject Re: Do we need vacuuming when tables are regularly dropped?
Date
Msg-id dcc563d10809291026h6d01e20cv1afcffd8aec332c5@mail.gmail.com
Whole thread Raw
In response to Re: Do we need vacuuming when tables are regularly dropped?  (Steve Crawford <scrawford@pinpointresearch.com>)
Responses Re: Do we need vacuuming when tables are regularly dropped?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin
On Mon, Sep 29, 2008 at 11:12 AM, Steve Crawford
<scrawford@pinpointresearch.com> 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?

pgsql-admin by date:

Previous
From: Steve Crawford
Date:
Subject: Re: Do we need vacuuming when tables are regularly dropped?
Next
From: Ing. Jorge S Alanís Garza
Date:
Subject: PID file