Are advisory locks guaranteed to be First Come First Serve? And can the behavior be relied upon?

Поиск
Список
Период
Сортировка
От Hemil Ruparel
Тема Are advisory locks guaranteed to be First Come First Serve? And can the behavior be relied upon?
Дата
Msg-id CANW1aT_Pc+xdoN_D-dK+j3uE+D_2wfFZu26aAfprWsoGhoNu-A@mail.gmail.com
обсуждение исходный текст
Список pgsql-general
I was playing with Advisory locks. I opened three connections to the database And obtained a lock with the same key. I noticed that the locks were obtained in the order of requests. I was wondering whether the locks are guaranteed to be First Come First Serve and can this behaviour be relied upon.

I read the docs here. But it didn't mention anything.

Thanks a lot for your time and efforts

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Calling a SQL function inside a C function
Следующее
От: Eric Zhu
Дата:
Сообщение: Re: Calling a SQL function inside a C function