pg_kill_query
Terminate a PostgreSQL query by process ID to resolve blocking or runaway queries. Requires PID; fails if connection is read-only.
Instructions
Terminate an active query by PID. Blocked when that connection's own readOnly mode is enabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | Process ID of the query to terminate | |
| connectionId | No | Id of the postgres connection to use, from databases.config.yml. Optional when only one postgres connection is configured. |