简体   繁体   English

如何将Postgres从9.6降级到9.5

[英]How to downgrade Postgres from 9.6 to 9.5

I removed my 9.6 postgres.app (removing the application by dragging it to the trash) and downloaded postgres.app. 我删除了9.6 postgres.app(通过将其拖到垃圾箱中删除了该应用程序)并下载了postgres.app。

However, when I did 但是,当我做

locate initdb 

It still points to the wrong location: 它仍然指向错误的位置:

/Applications/Postgres.app/Contents/Versions/9.6/bin/initdb
/Applications/Postgres.app/Contents/Versions/9.6/share/doc/postgresql/html/app-initdb.html
/Applications/Postgres.app/Contents/Versions/9.6/share/man/man1/initdb.1

What would be the most efficient way to resolve this problem? 解决这个问题的最有效方法是什么?

根据e4c5的建议,我可以通过在OSX环境中执行以下操作来更新路径:

sudo /usr/libexec/locate.updatedb

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM