Skip to main content

cancel_request

Function cancel_request 

Source
pub fn cancel_request(process_id: i32, secret_key: i32, buf: &mut BytesMut)
Expand description

Writes a cancel request.

Cancels a running query. This is sent on a separate connection from the main connection. The server does not send a response.

ยงArguments

  • process_id - Backend process ID (from BackendKeyData message)
  • secret_key - Secret key (from BackendKeyData message)
  • buf - Buffer to write the message to