Created
November 17, 2016 13:10
-
-
Save Voronenko/83fcd3cdd33dbaad86963972626f157c to your computer and use it in GitHub Desktop.
Check postgres db DBNAME exists
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
psql -lqt | cut -d \| -f 1 | grep -qw DBNAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment