Skip to content

Instantly share code, notes, and snippets.

@mischa
Created February 14, 2012 17:45

Revisions

  1. mischa created this gist Feb 14, 2012.
    18 changes: 18 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@

    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