DBLINK_IS_BUSY(3)

πŸ“¦ version 17.11, in opensuse-leap 16.0

✨ 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