dblink_is_busy

Name

dblink_is_busy -- checks to see if named connection is busy with an async query

Synopsis

 dblink_is_busy(text connname) RETURNS int
   

Inputs

connname

The specific connection name to use

Outputs

Returns 1 if connection is busy, 0 if it is not busy. If this function returns 0, it is guaranteed that dblink_get_result will not block.

Example

   SELECT dblink_is_busy('dtest1');