简体   繁体   English

在 Mac 上升级 PostgreSQL 时无法打开版本文件“postgresql@10/PG_VERSION”失败

[英]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.

相关问题 无法打开版本文件 PG_VERSION postgresql pg 升级 - could not open version file PG_VERSION postgresql pg upgrade 无法连接数据库Postgres(9.2),错误文件“ base / 16384 / PG_VERSION”丢失 - Unable to connect Database Postgres(9.2) with error File “base/16384/PG_VERSION” is missing 升级 postgresql 版本时是否应该使用 airflow 升级版? - Should I use airflow upgradedb when upgrading the postgresql version? Postgresql 9.2 pg_dump 版本不匹配 - Postgresql 9.2 pg_dump version mismatch 跨PG版本的Postgresql扩展pg_regress测试 - Postgresql Extension pg_regress tests across PG Version 服务器版本不匹配PostgreSQL pg_dump - server version mismatch postgresql pg_dump 如何解决此错误:无法打开文件“pg_wal/00000003.history”,或者当 PostgreSQL 磁盘空间不足时*不*做什么 - How to fix this ERROR: could not open file “pg_wal/00000003.history”, or what *not* to do when PostgreSQL runs out of disk space Serverless-framework postgresql版本升级问题 - Serverless-framework postgresql version upgrading problem 用于 Postgresql 迁移的 pg_dump/pg_restore 的理想版本 - Ideal version of pg_dump/pg_restore for Postgresql Migration PostgreSQL 14.5 pg_read_binary_file 无法打开文件进行读取:参数无效 - PostgreSQL 14.5 pg_read_binary_file could not open file for reading: Invalid argument
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM