We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SELECT pg_cancel_backend(<pid of the process>)
Source