logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dblink_cancel_query - cancels any active query on the named connection

Arguments

connname Name of the connection to use.

Description

dblink_cancel_query attempts to cancel any query that is in progress on the named connection. Note that 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.

Examples

SELECT dblink_cancel_query('dtest1'); PostgreSQL 17.5 2025 DBLINK_CANCEL_QUERY(3)

Name

dblink_cancel_query - cancels any active query on the named connection

Return Value

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

Synopsis

dblink_cancel_query(text connname) returns text

See Also