funny lock mode in DropTrigger

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема funny lock mode in DropTrigger
Дата
Msg-id 1319168198-sup-8313@alvh.no-ip.org
обсуждение исходный текст
Ответы Re: funny lock mode in DropTrigger
Список pgsql-hackers
I just noticed that DropTrigger uses ShareRowExclusiveLock to lock the
relation it's going to drop the trigger on.  The comment right above it
says that this should match RemoveTriggerById, but that one uses
AccessExclusiveLock -- so one of them (or the comment) is not right.

Besides, the docs state that no backend code uses ShareRowExclusiveLock
anyway (13.3 Explicit locking).  I guess that if the patch to reduce
lock strength in alter table goes in again, it'll need to update this
chapter to match.

-- 
Álvaro Herrera <alvherre@alvh.no-ip.org>


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: funny lock mode in DropTrigger
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: ProcessStandbyHSFeedbackMessage can make global xmin go backwards