Re: autovacuum next steps, take 2

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: autovacuum next steps, take 2
Дата
Msg-id 9972.1172545523@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: autovacuum next steps, take 2  ("Jim C. Nasby" <jim@nasby.net>)
Список pgsql-hackers
[ oh, I forgot to respond to this: ]

"Jim C. Nasby" <jim@nasby.net> writes:
> Isn't there a special lock acquired on a relation by vacuum? Can't we
> just check for that?

I think you're thinking that ConditionalLockRelation solves the problem,
but it does not, because it will fail if someone has taken a (quasi)
exclusive lock unrelated to vacuuming.  You don't want an application
that frequently takes short-term ExclusiveLocks on a table to thereby
cause autovacuum to frequently skip that table.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: autovacuum next steps, take 2
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: autovacuum next steps, take 2