Re: Second attempt, roll your own autovacuum

Поиск
Список
Период
Сортировка
От Csaba Nagy
Тема Re: Second attempt, roll your own autovacuum
Дата
Msg-id 1166544400.13028.255.camel@coppola.muc.ecircle.de
обсуждение исходный текст
Ответ на Re: Second attempt, roll your own autovacuum  (Richard Huxton <dev@archonet.com>)
Ответы Re: Second attempt, roll your own autovacuum  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: Second attempt, roll your own autovacuum  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
> Alternatively, perhaps a threshold so that a table is only considered
> for vacuum if:
>    (table-size * overall-activity-in-last-hour) < threshold
> Ideally you'd define your units appropriately so that you could just
> define threshold in postgresql.conf as 30% (of peak activity in last 100
> hours say).

No, this is definitely not enough. The problem scenario is when
autovacuum starts vacuuming a huge table and that keeps it busy 10 hours
and in the meantime the small but frequently updated tables get awfully
bloated...

The only solution to that is to have multiple vacuums running in
parallel, and it would be really nice if those multiple vacuums would be
coordinated by autovacuum too...

Cheers,
Csaba.



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Let's play bash the search engine
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Anyone? Best way to authenticate postgres against active directory?