Last Updated: February 25, 2016
·
726
· bjacog

Postgres easy kick users

SELECT pg_terminate_backend(procpid) FROM pg_stat_activity WHERE datname='YourDB';

It will close the connections to YourDB.