我已经安装了postgres 10,我想切换到Postgres 9.6。
当我运行brew search postgresql时,我得到以下结果:
==> Searching local taps...
postgresql ✔ postgresql@9.6 ✔ hashrocket/formulas/postgresql_autodoc postgresql@9.4 postgresql@9.5但是当我运行brew switch postgresql 9.6时,我得到:
Error: postgresql does not have a version "9.6" in the Cellar.
postgresql installed versions: 10.4发布于 2018-11-30 17:01:13
可以在postgres应用程序中切换postgresql版本。通过Cask安装应用程序
brew cask install postgres

然后添加(通过加号按钮)一个新的服务器,并指定postgres版本的路径(对我来说,版本在
ls /Applications/Postgres.app/Contents/Versions/)
有关详细信息,请参阅postgresapp.com (https://postgresapp.com/downloads.html)
希望这能有所帮助。
https://stackoverflow.com/questions/50800347
复制相似问题