pg_isbusy − see if a query is busy
pg_isbusy conn
pg_isbusy checks to see if the backend is busy handling a query or not.
conn |
The handle of a connection to the database in which the large object exists. |
Returns 1 if the backend is busy, in which case a call to pg_getresult would block, otherwise it returns 0.