This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
您可以将新版本安装在另一个目录中,并在另一个端口 5432 中启动新的 postgresql(例如:5433)
you can install the new version in another directory and start new postgresql in another port 5432 (example: 5433)
是的,这是可能的(另请参阅此答案),但根据您使用的操作系统,设置会略有不同。 Postgres 默认使用端口 5432,但您可以更改它,因此即使您需要两个版本同时运行也不是问题。您只需设置正确的端口即可。简而言之,您可以做到这一点,但需要更改其中一个版本的配置文件。
Yes, it is possible (see this answer also), but settings will slightly be different depending on OS that you use. Postgres uses by default port 5432 but you can change this, so even if you need both of versions to run at the same time it is not a problem. You just need to set a correct port. So simply put you can do that but need to change config file of one of the versions.