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

MacosPostgresqlDowngrade

Macos Problem Overview


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!

Macos Solutions


Solution 1 - Macos

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

brew uninstall postgresql
brew install postgresql@9.6
brew services start postgresql@9.6
brew link postgresql@9.6 --force

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSokrateeSView Question on Stackoverflow
Solution 1 - MacosMartin ZinovskyView Answer on Stackoverflow