Created
December 6, 2011 15:23
-
-
Save jjoergensen/1438561 to your computer and use it in GitHub Desktop.
Verify that postgresql has started
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
pg_dump -Upostgres --format=c --file=testdb_backup.sqlc testdb | |
pg_restore -Upostgres --verbose --format=c testdb_backup.sqlc |
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
cd /opt/postgres/9.1/bin | |
createdb testdb | |
psql | |
# \c testdb |
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
. /opt/postgres/9.1/pg91-openscg.env |
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
su postgres | |
psql | |
# (and quit with \q) |
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
sudo invoke-rc.d postgres-9.1-openscg status | |
# or | |
# telnet 127.0.0.1 5432 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment