Created
April 8, 2019 16:11
-
-
Save gyfoster/4ff5d73b4e0c8e5c758e3ec3c7403d04 to your computer and use it in GitHub Desktop.
A list of useful Postgres commands
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
Log into postgres via command line: | |
$ psql -h <host> -p <port> -U <username> -d <database> | |
Run script from command line: | |
$ psql -h <host> -p <port> -U <username> -d <database> -f <sql-script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment