Is there an easy way to test the lock on a user level lock without actually issuing the lock?
I would like to use them, but there is only a LockAcquire() and LockRelease().. There is no LockTest().. I guess I could do: IF LockAcquire() == 0: "locked" do whatever if it is locked... ELSE: LockRelease() "unlocked" do whatever since it was not locked in the first place.. This just seems to be an inefficient way of doing this... Thanks, Lance Ellinghaus ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/users-lounge/docs/faq.html