May 17, 2026, 11:40 PM
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
-- First find the pid of the session:
|
||||
|
||||
dbaclass#SELECT datname as database, pid as pid, usename as username, application_name , client_addr , query FROM pg_stat_activity;
|
||||
|
||||
<< Lets say the pid=1124, in the below query pass the pid value to kill that particular session..>>
|
||||
|
||||
dbaclass#select pg_terminate_backend(pid) from pg_stat_activity where pid='1123';
|
||||
Reference in New Issue
Block a user