>> That's what I suspected. But of course LockRelation() doesn't return
>> anything based on whether it succeeded, it just hangs, so it'll take a
>> little more work. Next year ...
I think this would actually have to be implemented inside the lock
manager in order to make it work right.
regards, tom lane