我正在使用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.6brew 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
要成功升级,我还需要做什么/另外要做什么?