1DBLINK_CANCEL_QUERY(3)   PostgreSQL 15.4 Documentation  DBLINK_CANCEL_QUERY(3)
2
3
4

NAME

6       dblink_cancel_query - cancels any active query on the named connection
7

SYNOPSIS

9       dblink_cancel_query(text connname) returns text
10

DESCRIPTION

12       dblink_cancel_query attempts to cancel any query that is in progress on
13       the named connection. Note that this is not certain to succeed (since,
14       for example, the remote query might already have finished). A cancel
15       request simply improves the odds that the query will fail soon. You
16       must still complete the normal query protocol, for example by calling
17       dblink_get_result.
18

ARGUMENTS

20       connname
21           Name of the connection to use.
22

RETURN VALUE

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

EXAMPLES

28           SELECT dblink_cancel_query('dtest1');
29
30
31
32PostgreSQL 15.4                      2023               DBLINK_CANCEL_QUERY(3)
Impressum