Skip to content

Instantly share code, notes, and snippets.

@GBH
Last active March 6, 2016 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GBH/0d9a18cbc152b180c352 to your computer and use it in GitHub Desktop.
Save GBH/0d9a18cbc152b180c352 to your computer and use it in GitHub Desktop.
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
brew update && brew upgrade postgresql
initdb /usr/local/var/postgres9.5.1 -E utf8
pg_upgrade -d /usr/local/var/postgres -D /usr/local/var/postgres9.5.1 -b /usr/local/Cellar/postgresql/9.4.2/bin/ -B /usr/local/Cellar/postgresql/9.5.1/bin/ -v
rm -rf postgres
mv postgres9.5.1 postgres
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