Created
January 22, 2013 23:39
-
-
Save smailq/4599943 to your computer and use it in GitHub Desktop.
Terminate existing connections to postgresql.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT pg_terminate_backend(pg_stat_activity.procpid) FROM pg_stat_activity WHERE datname = ''; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment