DBLINK_CANCEL_QUERY(3)
π NAME π
okay bestie, welcome to the DBLINK_CANCEL_QUERY(3) page from the PostgreSQL 16.15 Documentation β manual name folded in right at the top like a little name tag π. dblink_cancel_query is the function that cancels any active query on the named connection. slay.
β¨ SYNOPSIS β¨
dblink_cancel_query(text connname) returns text
π DESCRIPTION π
dblink_cancel_query attempts to cancel any query that is in progress on the named connection. It's giving βtry to stop itβ energy, but bestie, it is not certain to succeed β 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. no cap.
β οΈ lowkey important: this cancel request is a nudge, not a guaranteed kill. you still have to finish the normal query protocol, okay? π«Ά
π¦ ARGUMENTS π¦
connnameβ name of the connection to use. that's the whole argument, bestie π
πΈ RETURN VALUE πΈ
Returns OK if the cancel request has been sent, or the text of an error message on failure. so: either the sweet little OK, or an error message telling you what went wrong π
π EXAMPLES π
SELECT dblink_cancel_query('dtest1');
xoxo bestie π β source/version: PostgreSQL 16.15, date: 2026, periodt β¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql16-docs 16.15-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