How to know whether a table is locked ? - Mailing list pgsql-hackers

From Nicolas Bazin
Subject How to know whether a table is locked ?
Date
Msg-id 004101c1e9a1$6eb55ab0$660d090a@software.ingenico.com.au
Whole thread Raw
Responses Re: How to know whether a table is locked ?  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
I read a thread about table lock timeout but don't know whether anything has been done about it.
 
Here is what I'd like to do:
I don't want my transactions to be on hold for too long so I'd like to use a syntax I use on INFORMIX already:
SET LOCK MODE TO [WAIT [second] | NOT WAIT]
I'm using ecpg and I think I'm up to make a patch to it to support the WAIT [second] with the asynchronous functions but I need a way to know whether a statement would lock from the back-end to implement the NOT WAIT.
Is there a way?

pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: failed regression tests
Next
From: "Christopher Kings-Lynne"
Date:
Subject: Re: commands subdirectory continued -code cleanup