Postgres module

send_cancel_request

procedure · 1 overloadsince 0.27.0Source

Asks the server to stop what c is running: a CancelRequest on a connection of its own, over TLS when c uses it. The server answers nothing and closes that connection once it has acted. Whether a statement was stopped shows on c (QUERY_CANCELED), not here.

send_cancel_request :: (c: *Connection) -> Pg_Error

Asks the server to stop what c is running: a CancelRequest on a connection of its own, over TLS when c uses it. The server answers nothing and closes that connection once it has acted. Whether a statement was stopped shows on c (QUERY_CANCELED), not here.

Parameters

c: *Connection
the connection whose statement is to be stopped.

Returns

See also