postgres killing connections on db. whatever by Gentle Grebe on Jun 22 2020 Donate. 0. SELECT pg_terminate_backend (pid) FROM pg_stat_activity WHERE -- don't kill my own connection! pid <> pg_backend_pid () -- don't kill the connections to other databases AND datname = 'database_name' ; Source: stackoverflow.com.
Click to get the latest Buzzing content. Take A Sneak Peak At The Movies Coming Out This Week (8/12) New Movie Releases This Weekend: October 15-17