我安装了 PostgreSQL 10,并且刚刚安装了 PostgreSQL 12(在 Windows 上)。我正在尝试使用pg_upgrade
. 但是,我遇到了一个恼人的错误:
我运行的命令如下:
$ pg_upgrade.exe -b 'C:\Program Files\PostgreSQL\10\bin\' -B 'C:\Program Files\PostgreSQL\12\bin\
' -d 'C:\Program Files\PostgreSQL\10\data\' -D 'C:\Program Files\PostgreSQL\12\data\'
但是,我收到错误消息:
You must identify the directory where the new cluster binaries reside.
Please use the -B command-line option or the PGBINNEW environment variable.
Failure, exiting
...尽管显然这样做了。
有人见过这个吗?