> select pg_cancel_backend(pid);> will kill a running query.
Thanks.
> Sometimes cancel_backend fails because there's no point where the code> checks for a cancel.
What would such a point in the code look like?