DBLINK_CANCEL_QUERY(3)
π DBLINK_CANCEL_QUERY π
okay bestie, welcome to the dblink_cancel_query page β it's a PostgreSQL 18.6 manual page, section 3 (that's the library-call girlies, iykyk) β¨
πΈ NAME πΈ
dblink_cancel_query β cancels any active query on the named connection π
π¦ SYNOPSIS π¦
dblink_cancel_query(text connname) returns text
β¨ DESCRIPTION β¨
so what this does is: dblink_cancel_query attempts to cancel any query that's in progress on the named connection. it's giving "hey bestie, wrap it up" π«Ά
but real talk β this is not certain to succeed. not to be dramatic but it literally cannot promise you anything, because (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. that's it. that's the whole vibe π
and the part people always forget: you must still complete the normal query protocol, for example by calling dblink_get_result. the cancel is not a substitute for finishing your homework, bestie, it's just a lil nudge π
π ARGUMENTS π
connnameβ name of the connection to use. like, which one. the connection. the name of it. π
π RETURN VALUE π
returns OK if the cancel request has been sent β
β or the text of an error message on failure π
π EXAMPLES π
SELECT dblink_cancel_query('dtest1');
not me writing an entire manpage just to say "we tried to cancel it, no promises" π this is lowkey the most honest function in the whole extension and I respect it fr fr
okay that's the whole page, slay, you're welcome π main character energy from you for reading all of it β¨
PostgreSQL 18.6 Β· 2026 Β· DBLINK_CANCEL_QUERY(3) β bye bestie, go cancel something π¦
π¦ where this page comes from
- alpine 3.23: postgresql18-doc 18.6-r0 Β· PostgreSQL
- alpine 3.24: postgresql18-doc 18.6-r0 Β· PostgreSQL
- arch rolling: postgresql 18.6-4 Β· PostgreSQL
- fedora 43: postgresql-contrib 18.6-1.fc43 Β· PostgreSQL
- fedora 44: postgresql-contrib 18.6-1.fc44 Β· PostgreSQL
- nixos 26.05: postgresql 18.6
- ubuntu resolute: postgresql-doc-18 18.6-0ubuntu0.26.04.1 Β· PostgreSQL
- ubuntu stonking: postgresql-doc-18 18.6-3build2 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms