Ashkil Dighin <ashkildighi...@gmail.com> writes: > The performance bottleneck in LWLockRelease()method goes through an array > one by one to see which lock was released with O(N). As soon as the lock is > found it performs an array to remove the lock.
Typically, such locks are released in LIFO order. Do you have any actual evidence of a performance problem here? regards, tom lane