Re: First steps with 8.3 and autovacuum launcher

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: First steps with 8.3 and autovacuum launcher
Дата
Msg-id 20071001195916.GE20792@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: First steps with 8.3 and autovacuum launcher  (Heikki Linnakangas <heikki@enterprisedb.com>)
Ответы Re: First steps with 8.3 and autovacuum launcher  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Heikki Linnakangas escribió:

> In my opinion, CREATE INDEX shouldn't need to wait for autovacuum to
> finish, regardless of who issued it. This is like priority inversion;
> the autovacuum is not urgent, and runs slowly to avoid disturbing
> others. But if it keeps the higher priority CREATE INDEX from starting,
> it is disturbing others. Could we arrange things so that the effective
> cost delay of the autovacuum process that's in the way gets set to 0
> (like priority inheritance)?

This is an interesting idea, but I think it's attacking the wrong
problem.  To me, the problem here is that an ANALYZE should not block
CREATE INDEX or certain forms of ALTER TABLE.

We do have a mechanism for changing the cost-delay parameters of an
autovac worker, but even if we made it to work, it would still delay the
other operation needlessly until the end of the analyze.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: "Brendan Jurd"
Дата:
Сообщение: Re: Text <-> C string
Следующее
От: Tom Lane
Дата:
Сообщение: Re: First steps with 8.3 and autovacuum launcher