Skip to content

Instantly share code, notes, and snippets.

@b1nary
Created April 29, 2016 07:38
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 b1nary/225f700dfcc72be743a8fd9a95b5a9f8 to your computer and use it in GitHub Desktop.
Save b1nary/225f700dfcc72be743a8fd9a95b5a9f8 to your computer and use it in GitHub Desktop.
Stick to Postgres 9.4 (oder version) on OSX

I am sure i'll run into this again, so i document the Process.

I need a older version because our servers still use 9.4 and 9.5 dumps from rails generate a non valid SQL structure.

Install older Postgres version:

  1. http://postgresapp.com/
  2. export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin

Make it work with Rails

(without adding localhost to all database.yml files)

  • Create expected pg_config ln -s $(which pg_config) /usr/local/bin/pg_config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment