homebrew PostgreSQL upgraded to 10.1 but I need 9.6
Had the same problem and found this from https://jaketrent.com/post/downgrade-previously-installed-brew-formula/


brew install postgres@9.6
brew switch postgres 9.6.3
brew info postgres // prints summary that should show no conflicts
brew services start postgresql // if desired, of course.