Re: Proposal - Reduce lock during first phase of VACUUM TRUNCATE from ACCESS EXCLUSIVE to EXCLUSIVE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Proposal - Reduce lock during first phase of VACUUM TRUNCATE from ACCESS EXCLUSIVE to EXCLUSIVE
Дата
Msg-id 1168693.1739854219@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Proposal - Reduce lock during first phase of VACUUM TRUNCATE from ACCESS EXCLUSIVE to EXCLUSIVE  (Ramanathan <sivakrishnathan@gmail.com>)
Ответы Re: Proposal - Reduce lock during first phase of VACUUM TRUNCATE from ACCESS EXCLUSIVE to EXCLUSIVE
Список pgsql-hackers
Ramanathan <sivakrishnathan@gmail.com> writes:
> I propose modifying the use of an EXCLUSIVE lock during the backward scan
> phase, then upgrading that lock to ACCESS EXCLUSIVE only for the actual
> truncation phase. Since the truncation phase should be relatively quick,
> the impact of the ACCESS EXCLUSIVE lock should be minimal.

Except that mid-transaction lock upgrades increase the risk of
deadlock failures.

            regards, tom lane



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