Code: Select all
SELECT * FROM pg_stat_activity WHERE state = 'active';
Code: Select all
SELECT pg_cancel_backend(<PID>);
Code: Select all
SELECT pg_terminate_backend(<PID>);
Code: Select all
SELECT * FROM pg_stat_activity WHERE state = 'active';
Code: Select all
SELECT pg_cancel_backend(<PID>);
Code: Select all
SELECT pg_terminate_backend(<PID>);