Skip to content

Instantly share code, notes, and snippets.

@nicnilov
Created June 1, 2017 10:57
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 nicnilov/bc30fd01d9f58fd9dc7e64eb076495ea to your computer and use it in GitHub Desktop.
Save nicnilov/bc30fd01d9f58fd9dc7e64eb076495ea to your computer and use it in GitHub Desktop.
Brew revert Postgresql to 9.4 after auto upgrade and use existing data directory
brew search postgres
brew uninstall postgresql
brew install postgresql@9.4
brew link postgresql@9.4 --force
pg_ctl -D /usr/local/var/postgres/ start # << specify the existing data directory and not the newly installed one
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment