Kill all session of a user in postgres
-- Here we want to kill all session of the user postgres
postgresql configurationintermediate
by PostgreSQL
16 views
-- Here we want to kill all session of the user postgres
123
-- Here we want to kill all session of the user postgres
dbaclass#
select pg_terminate_backend(pid) from pg_stat_activity where usename='postgres';Please to add comments
No comments yet. Be the first to comment!