How to use homebrew to downgrade postgresql from 10.1 to 9.6 on Mac OS

SokrateeS picture SokrateeS · Nov 14, 2017 · Viewed 35.2k times · Source

My mac has postgresql 10.1 on it, and I need 9.6 for my work website to function on my local machine. Can't find easy instructions on how to uninstall or downgrade to 9.6. Any help would be appreciated!

Answer

Martin Zinovsky picture Martin Zinovsky · Dec 5, 2017

I got this issue as well after running brew upgrade. Following commands worked for me:

brew uninstall postgresql
brew install [email protected]
brew services start [email protected]
brew link [email protected] --force