Last active
August 29, 2015 14:22
-
-
Save adamgibbons/0ff434998a390bdc880e to your computer and use it in GitHub Desktop.
Upgrade PostgreSQL
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
`launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist` | |
`mv /usr/local/var/postgres /usr/local/var/postgres.old` | |
`initdb -D /usr/local/var/postgres` | |
`pg_upgrade -b /usr/local/Cellar/postgresql/9.3.5_1/bin -B /usr/local/Cellar/postgresql/9.4.3/bin -d /usr/local/var/postgres.old -D /usr/local/var/postgres` | |
`./delete_old_cluster.sh` | |
`rm delete_old_cluster.sh` | |
`launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment