Cancel a user's query based on procpid from pg_stat_activity

pg_cancel_backend(procpid);