DBLINK_IS_BUSY(3)
β¨ NAME β¨
okay so bestie, this is the DBLINK_IS_BUSY(3) manual page π and dblink_is_busy checks if a connection is busy with an async query. that's the whole vibe check. no cap.
πΈ SYNOPSIS πΈ
dblink_is_busy(text connname) returns int
π¦ DESCRIPTION π¦
dblink_is_busy tests whether an async query is in progress. periodt. like, it's giving βis this connection occupied with async query business right now?β energy, and that is literally the whole function. π
π ARGUMENTS π
connnameβ the name of the connection to check. yep, you hand it the connection's name and it does the look. π«Ά
β RETURN VALUE β
Returns 1 if the connection is busy, and 0 if it is not busy. If this function returns 0, it is guaranteed that dblink_get_result will not block. that's the important bit, bestie β zero means no blocking from dblink_get_result, fr fr. π
π EXAMPLES π
like, the classic:
SELECT dblink_is_busy('dtest1');
slay, that's the example. β¨
cute little sign-off: this page comes from PostgreSQL 17.11, dated 2026, and the manual you're reading is DBLINK_IS_BUSY(3). mwah π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17-docs 17.11-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms