Created
October 31, 2017 17:26
-
-
Save jorgevilaca82/1869658275a55a0b712293f0a88cf960 to your computer and use it in GitHub Desktop.
This file contains 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(pid) | |
from pg_stat_activity | |
where datname='dbname'; | |
drop database if exists "dbname"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment