Search Postgresql Archives

Re: Advisory lock grant order

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yossi Cohen <yossic00@xxxxxxxxx> 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


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux