Re: Avoiding vacuum full on an UPDATE-heavy table

Поиск
Список
Период
Сортировка
От Matthew T. O'Connor
Тема Re: Avoiding vacuum full on an UPDATE-heavy table
Дата
Msg-id 54139.192.154.91.225.1085167360.squirrel@192.154.91.225
обсуждение исходный текст
Ответ на Avoiding vacuum full on an UPDATE-heavy table  (Bill Montgomery <billm@lulu.com>)
Ответы Re: Avoiding vacuum full on an UPDATE-heavy table
Список pgsql-performance
> Is there any way to avoid doing a periodic VACUUM FULL on this table,
> given the fairly radical usage pattern? Or is the (ugly) answer to
> redesign our application to avoid this usage pattern?

Yes, you should be able to doing avoid periodic VACUUM FULL.  The problem
is that your table needs to be vacuumed MUCH more often.  What should
happen is that assuming you have enough FSM space allocated and assuming
you vacuum the "right" amount, your table will reach a steady state size.
As you could see your from you vacumm verbose output your table was almost
entriely dead space.

pg_autovacuum would probably help as it monitors activity and vacuumus
tables accordingly.  It is not included with 7.3.x but if you download it
and compile yourself it will work against a 7.3.x server.

Good luck,

Matthew



В списке pgsql-performance по дате отправления:

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: PostgreSQL caching
Следующее
От: Marty Scholes
Дата:
Сообщение: Re: PostgreSQL caching