【发布时间】:2020-12-15 19:01:14
【问题描述】:
我安装了 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
...尽管显然这样做了。
有人见过这个吗?
【问题讨论】:
-
您是否尝试过使用正斜杠或加倍反斜杠? (MS-寡妇)
标签: windows postgresql postgresql-12 pg-upgrade