Kill a running query in Postgres

pg_kill_query(con, pid)

Arguments

con

pg connection

pid

pid of the query to kill

Value

see pg_cancel_backend