Cancel a Postgres query

Databases
SELECT pg_cancel_backend(<pid>);