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

Solution 1:

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