Autovacuum maintenance window (was Re: Adjust autovacuum naptime automatically)

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Autovacuum maintenance window (was Re: Adjust autovacuum naptime automatically)
Дата
Msg-id 20060817152144.GO318@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: [HACKERS] Adjust autovacuum naptime automatically  ("Matthew T. O'Connor" <matthew@zeut.net>)
Ответы Re: [HACKERS] Autovacuum maintenance window (was Re: Adjust autovacuum  ("Matthew T. O'Connor" <matthew@zeut.net>)
Список pgsql-patches
Matthew T. O'Connor wrote:

> My vision of the maintenance window has always been very simple, that
> is, during the maintenance window the thresholds get reduced by some
> factor (probably a GUC variable) so during the day it might take 10000
> updates on a table to cause a vacuum but during the naptime it might be
> 10% of that, 1000.  Is this in-line with what others were thinking?

My vision is a little more complex than that.  You define group of
tables, and separately you define time intervals.  For each combination
of group and interval you can configure certain parameters, like a
multiplier for the autovacuum thresholds and factors; and also the
"enable" bit.  So you can disable vacuum for some intervals, and refine
the equation factors for some others.  This is all configured in tables,
not in GUC, so you have more flexibility in choosing stuff for different
groups of tables (say, you really want the small-but-high-update tables
to be still vacuumed even during peak periods, but you don't want that
big fat table to be vacuumed at all during the same period).

I had intended to work on this during the code sprint, but got
distracted.  I intend to do it for 8.3 instead.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: Chris Mair
Дата:
Сообщение: Re: selecting large result sets in psql using cursors
Следующее
От: "Matthew T. O'Connor"
Дата:
Сообщение: Re: [HACKERS] Autovacuum maintenance window (was Re: Adjust autovacuum