This page in other versions: 8.4 / 9.0 / 9.1 / 9.2 / 9.3  |  Development versions: devel  |  Unsupported versions: 8.3

dblink_is_busy

Name

dblink_is_busy -- checks if connection is busy with an async query

Synopsis

dblink_is_busy(text connname) returns int

Description

dblink_is_busy tests whether an async query is in progress.

Arguments

conname

Name 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.

Example

SELECT dblink_is_busy('dtest1');
Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group