Forked from matthewlehner/homebrew-postgres-9.6-upgrade.sh
Created
March 14, 2017 03:47
-
-
Save dfang/0807a205ddc2a10b88aecd1b7e0707ff to your computer and use it in GitHub Desktop.
Upgrades Homebrew Postgres installation from 9.5 to 9.6
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
brew services stop postgresql | |
initdb /usr/local/var/postgres9.6 -E utf8 | |
pg_upgrade -d /usr/local/var/postgres -D /usr/local/var/postgres9.6 -b /usr/local/Cellar/postgresql/9.5.5/bin -B /usr/local/Cellar/postgresql/9.6.1/bin -v | |
mv /usr/local/var/postgres /usr/local/var/postgres9.5 | |
mv /usr/local/var/postgres9.6 /usr/local/var/postgres | |
brew services start postgresql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment