Re: Do we need vacuuming when tables are regularly dropped?

Поиск
Список
Период
Сортировка
Искать
От
Steve Crawford
Тема
Re: Do we need vacuuming when tables are regularly dropped?
Дата
Msg-id
48E10C95.2050207@pinpointresearch.com
Ответ на
Список
Дерево обсуждения
Do we need vacuuming when tables are regularly dropped? "Peter Kovacs" <maxottovonstirlitz@gmail.com>
Re: Do we need vacuuming when tables are regularly dropped? Tom Lane <tgl@sss.pgh.pa.us>
Re: Do we need vacuuming when tables are regularly dropped? "Peter Kovacs" <maxottovonstirlitz@gmail.com>
Re: Do we need vacuuming when tables are regularly dropped? Tom Lane <tgl@sss.pgh.pa.us>
Re: Do we need vacuuming when tables are regularly dropped? "Peter Kovacs" <maxottovonstirlitz@gmail.com>
Re: Do we need vacuuming when tables are regularly dropped? Steve Crawford <scrawford@pinpointresearch.com>
Re: Do we need vacuuming when tables are regularly dropped? "Scott Marlowe" <scott.marlowe@gmail.com>
Re: Do we need vacuuming when tables are regularly dropped? Tom Lane <tgl@sss.pgh.pa.us>
Re: Do we need vacuuming when tables are regularly dropped? Steve Crawford <scrawford@pinpointresearch.com>
Re: Do we need vacuuming when tables are regularly dropped? Tom Lane <tgl@sss.pgh.pa.us>
Re: Do we need vacuuming when tables are regularly dropped? Steve Crawford <scrawford@pinpointresearch.com>
Re: Do we need vacuuming when tables are regularly dropped? "Peter Kovacs" <maxottovonstirlitz@gmail.com>

>> 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

В списке pgsql-admin по дате отправления
От: Andrew Sullivan
Дата:
Сообщение: Re: turning of pg_xlog
От: Scott Marlowe
Дата:
FAQ