尝试升级到Postgres 9.6,但获得“此实用程序只能升级到PostgreSQL 9.5版”。

时间:2019-09-05 20:52:21

标签: postgresql upgrade macos-high-sierra

我正在使用Mac High Sierra,并尝试按照此处的说明https://medium.com/@richardgong/how-to-upgrade-postgres-db-on-mac-homebrew-99516db3e57f将Postgres 9.5升级到9.6。我用brew安装Postgres 9.5。所以我用

安装了9.6
brew install postgresql@9.6

,然后尝试使用升级

pg_upgrade \
  -d postgres \
  -D postgresql\@9.6 \
  -b /usr/local/Cellar/postgresql/9.5.0/bin/ \
  -B /usr/local/Cellar/postgresql\@9.6/9.6.15/bin/ \
  -v

但是,这会导致错误

Running in verbose mode
Performing Consistency Checks
-----------------------------
Checking cluster versions                                   
This utility can only upgrade to PostgreSQL version 9.5.
Failure, exiting

要成功升级,我还需要做什么/另外要做什么?

0 个答案:

没有答案