Re: Higher chance of deadlock due to ANALYZE VERBOSE / SHARE UPDATE EXCLUSIVE?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Higher chance of deadlock due to ANALYZE VERBOSE / SHARE UPDATE EXCLUSIVE?
Дата
Msg-id 1192.1411432705@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Higher chance of deadlock due to ANALYZE VERBOSE / SHARE UPDATE EXCLUSIVE?  (Dean Toader <deant@mirthcorp.com>)
Список pgsql-general
Dean Toader <deant@mirthcorp.com> writes:
> Can anyone see an increased possibility of deadlock occurring with
> ANALYZE VERBOSE (initiated by �vacuumdb -a --analyze-only --verbose -U postgres�
> command run once every 24 hrs on a cronjob schedule), VACUUM (initiated by autovacuum)
> and say ... a long running UPDATE (initiated by a JEE application)
> all happening concurrently on the same table?

If an autovacuum is part of a deadlock, the deadlock detector should
preferentially kill the autovacuum transaction.  Is that not happening
for you?  But in any case, whether that happens or not, SHARE UPDATE
EXCLUSIVE doesn't block UPDATE commands, so that the case you describe
above is not a deadlock.  You would have to be doing some kind of DDL
on the table in question to have any risk.

            regards, tom lane


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

Предыдущее
От: Dean Toader
Дата:
Сообщение: Higher chance of deadlock due to ANALYZE VERBOSE / SHARE UPDATE EXCLUSIVE?
Следующее
От: Xiang Gan
Дата:
Сообщение: Re: Installing Postgresql on Linux Friendlyarm