Skip to content

Instantly share code, notes, and snippets.

@EdwardTippett
Forked from rafaelss/gist:3700977
Last active December 23, 2015 14:09
Show Gist options
  • Save EdwardTippett/6647437 to your computer and use it in GitHub Desktop.
Save EdwardTippett/6647437 to your computer and use it in GitHub Desktop.
Steps to install and run PostgreSQL 9.3 using Homebrew (Mac OS X)
(if you aren't using version 9.2.4, change to the correct version)
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
mv /usr/local/var/postgres /usr/local/var/postgres92
brew upgrade postgresql
initdb /usr/local/var/postgres -E utf8
pg_upgrade -b /usr/local/Cellar/postgresql/9.2.4/bin -B /usr/local/Cellar/postgresql/9.3.0/bin -d /usr/local/var/postgres91 -D /usr/local/var/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