Kill a stuck backend postgres

Force-kill a backend by pid; note: try pg_cancel_backend first to cancel the query only

SELECT pg_terminate_backend(<pid>); -- graceful first: SELECT pg_cancel_backend(<pid>);
more postgres all 29 commands →