历史版本。 PostgreSQL 9.2 已结束支持。 2017-11-09. 请参阅 当前版本手册.
dblink_is_busy
dblink_is_busy — checks if connection is busy with an async query
大纲
dblink_is_busy(text connname) returns int
Description
dblink_is_busy tests whether an async query is in progress.
Arguments
connnameName of the connection to check.
Return Value
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.
Examples
SELECT dblink_is_busy('dtest1');