Re: Autovacuum cancellation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Autovacuum cancellation
Дата
Msg-id 10572.1193403397@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Autovacuum cancellation  (Heikki Linnakangas <heikki@enterprisedb.com>)
Список pgsql-patches
Heikki Linnakangas <heikki@enterprisedb.com> writes:
> Alvaro Herrera wrote:
>> /*
>> * Look for a blocking autovacuum. There will only ever
>> * be one, since the autovacuum workers are careful
>> * not to operate concurrently on the same table.
>> */

> I think that's a bit unaccurate. You could have multiple autovacuum
> workers operating on different tables participating in a deadlock. The
> reason that can't happen is that autovacuum never holds a lock while
> waiting for another.

And that's not true either.  It may only want low-grade locks (eg
AccessShareLock on a system catalog) but deadlock is nonetheless
entirely possible in principle.

            regards, tom lane

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

Предыдущее
От: Zdenek Kotala
Дата:
Сообщение: fix ZIC dependency on postgres.h
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Autovacuum cancellation