https://gist.github.com/joho/3735740
Steps to install and run PostgreSQL 9.2 using Homebrew (Mac OS X) (if you aren't using version 9.1.5, change line 6 with the correct version)
- launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
- mv /usr/local/var/postgres /usr/local/var/postgres91
- brew update
- brew upgrade postgresql
- initdb /usr/local/var/postgres -E utf8
- pg_upgrade -b /usr/local/Cellar/postgresql/9.1.5/bin -B /usr/local/Cellar/postgresql/9.2.0/bin -d /usr/local/var/postgres91 -D /usr/local/var/postgres
- cp /usr/local/Cellar/postgresql/9.2.0/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/
- pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
- rm -rf /usr/local/var/postgres91
If you're using ruby, also:
gem pristine pg
Last active
April 26, 2016 15:40
-
-
Save okwrtdsh/b027fbb01cf8996eeb08765317fbe28b to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment