DBLINK_CANCEL_QUERY(3)
π DBLINK_CANCEL_QUERY(3) π
okay bestie, you've found the dblink_cancel_query(3) page in the PostgreSQL 17.11 Documentation. it's giving "how do I cancel a query on a named connection?" energy, and honestly it ate. π«Ά
β¨ NAME β¨
dblink_cancel_query β cancels any active query on the named connection. periodt. π
π SYNOPSIS π
dblink_cancel_query(text connname) returns text
π¦ DESCRIPTION π¦
so dblink_cancel_query attempts to cancel any query that is in progress on the named connection. no cap. π«Ά
but bestie, listen: this is not certain to succeed β since, for example, the remote query might already have finished. π a cancel request simply improves the odds that the query will fail soon. you must still complete the normal query protocol, for example by calling dblink_get_result. that part is literally required, okay? β¨
πΈ ARGUMENTS πΈ
connnameβ name of the connection to use. that's the argument, and it's doing its one job beautifully. π
π RETURN VALUE π
returns OK if the cancel request has been sent, or the text of an error message on failure. slay. π
π₯ EXAMPLES π₯
here's the example, copied exactly because we do not mess with syntax in this house:
SELECT dblink_cancel_query('dtest1');
that's the whole page, bestie. sourced from the PostgreSQL 17.11 docs, dated 2026 β go forth and cancel those queries responsibly πβ¨
π¦ 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