Re: Relations being opened without any lock whatever

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Relations being opened without any lock whatever
Дата
Msg-id 27229.1538352508@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Relations being opened without any lock whatever  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes:
> Okay, that's bad.  Wouldn't it be sufficient to use what the caller
> passes out as lockmode instead of enforcing AEL though?

No, because at the bottom of that function we're going to do a DROP
CONSTRAINT on the old FK constraint, and that needs AEL anyway.
If we tried to take a lesser lock first we'd just be creating a
lock-upgrade deadlock risk.

            regards, tom lane


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Relations being opened without any lock whatever
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: file cloning in pg_upgrade and CREATE DATABASE