Skip to content

Instantly share code, notes, and snippets.

@mischa
Created February 14, 2012 17:45
Show Gist options
  • Save mischa/1828536 to your computer and use it in GitHub Desktop.
Save mischa/1828536 to your computer and use it in GitHub Desktop.
Hombrew os x lion postgres 9.0 to 9.1 upgrade
Based off of this: https://raw.github.com/gist/1252442/ebd81b8f73fb80f1aa88fe1bbca3c5bcfc0d55d3/gistfile1.txt (which wasn't using homebrew)
unload whatever launch agents you have for postgres
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
make sure pg is stopped
brew update
brew install postgresql
cd /usr/local/var
mv postgres postgres.9.0
initdb /usr/local/var/postgres
pg_upgrade -d /usr/local/var/postgres.9.0 -D /usr/local/var/postgres -b /usr/local/Cellar/postgresql/9.0.4/bin -B /usr/local/Cellar/postgresql/9.1.2/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment