logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dblink_is_busy - checks if connection is busy with an async query

Arguments

connname Name of the connection to check.

Description

dblink_is_busy tests whether an async query is in progress.

Examples

SELECT dblink_is_busy('dtest1'); PostgreSQL 17.5 2025 DBLINK_IS_BUSY(3)

Name

dblink_is_busy - checks if connection is busy with an async query

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.

Synopsis

dblink_is_busy(text connname) returns int

See Also