kil
This commit is contained in:
parent
028f478e3c
commit
f3ba12a552
3
PostgreSQL/kill_session_by_username
Normal file
3
PostgreSQL/kill_session_by_username
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
select pg_terminate_backend(pid) from pg_stat_activity psa
|
||||||
|
join pg_user on pgu on pgu.usesysid = psa.usesysid
|
||||||
|
where datname='sdfsdfsdf' and pgu.usename in ( 'sdfsdfsdf');
|
||||||
Loading…
Reference in New Issue
Block a user