Re: Advisory lock grant order

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Advisory lock grant order
Дата
Msg-id 7777.1410269291@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Advisory lock grant order  (Yossi Cohen <yossic00@gmail.com>)
Список pgsql-general
Yossi Cohen <yossic00@gmail.com> writes:
> If I request an advisory lock (pg_advisory_lock) with the same key from
> several sessions; will the lock be granted in the same order as it was
> requested?

Usually.  IIRC, the lock code will grant locks out-of-order if a deadlock
would result without it.  There might be some other exceptions but I
don't recall any.

            regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Crash in 9.4 Beta when partially collapsing left outer joins
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Last active time for a database