[英]could not open version file "postgresql@10/PG_VERSION" Failure when upgrading PostgreSQL on Mac
I am attempting to upgrade PostgreSQL on Mac from 10 to 12. I have installed 12, however I have hit a blocker when trying to upgrade.我正在尝试将 Mac 上的 PostgreSQL 从 10 升级到 12。我已经安装了 12,但是在尝试升级时遇到了阻止程序。
I'd really like to keep the data rather than blow it all away, which is why I am using pg_upgrade
.我真的很想保留数据而不是将其全部删除,这就是我使用pg_upgrade
的原因。
When I run:当我运行时:
pg_upgrade -d postgresql\@10 -D postgresql\@12 -b /usr/local/Cellar/postgresql@10/10.19_1/bin/ -B /usr/local/Cellar/postgresql@12/12.9_1/bin -v
Running in verbose mode
I get the following error:我收到以下错误:
could not open version file "postgresql@10/PG_VERSION" Failure, exiting无法打开版本文件“postgresql@10/PG_VERSION”失败,退出
PostgreSQL 12 is installed: PostgreSQL 12 已安装:
brew list --versions | grep postgres
postgresql@10 10.19_1
postgresql@12 12.9_1
Am I missing a step?我错过了一步吗?
Use absolute paths for the PostgreSQL data directories.使用 PostgreSQL 数据目录的绝对路径。 If that doesn't help, it would be a PostgreSQL bug that you should report.如果这没有帮助,您应该报告一个 PostgreSQL 错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.