DBLINK_CANCEL_QUERY(3)

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

okay so bestie, this is the manual page for dblink_cancel_query(3), straight outta the PostgreSQL 13.23 docs, and it’s here to help you cancel a query on a connection. iconic behavior, honestly 🫢

🌸 NAME 🌸

dblink_cancel_query β€” cancels any active query on the named connection, no cap πŸ’…

✨ SYNOPSIS ✨

dblink_cancel_query(text connname) returns text

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so dblink_cancel_query attempts to cancel any query that is in progress on the named connection. but bestie, listen: this is not certain to succeed β€” for example, the remote query might already have finished by the time you ask 😭. a cancel request simply improves the odds that the query will fail soon. you still have to complete the normal query protocol, for example by calling dblink_get_result. fr fr, don’t skip that part.

πŸŽ€ ARGUMENTS πŸŽ€

  • connname β€” name of the connection to use. that’s the vibe.

⭐ RETURN VALUE ⭐

Returns OK if the cancel request has been sent, or the text of an error message on failure. periodt.

πŸ”₯ EXAMPLES πŸ”₯

SELECT dblink_cancel_query('dtest1');

byeee bestie πŸ’œ this page is from PostgreSQL 13.23 and it’s dated 2025 β€” mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from