Created
March 23, 2016 16:09
-
-
Save m87carlson/254697cc014f69e401c7 to your computer and use it in GitHub Desktop.
Take a postgres database "mydb" offline
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
update pg_database set datallowconn = false where datname = 'mydb'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment