【发布时间】:2021-12-12 19:08:28
【问题描述】:
我安装了 postgres 14 beta,我想升级到 14 新版本。我刚刚安装了新版本 pg 14,当我尝试启动 pg 14 beta 时,出现以下错误。请问从测试版升级到新版的正确步骤
-bash-4.2$ /usr/pgsql-14/bin/pg_ctl -D /var/lib/pgsql/14/data -l logfile start
waiting for server to start.... stopped waiting
pg_ctl: could not start server
Examine the log output.
-bash-4.2$ cat logfile
2021-10-27 13:19:29.507 UTC [5112] FATAL: database files are incompatible with server
2021-10-27 13:19:29.507 UTC [5112] DETAIL: The database cluster was initialized with CATALOG_VERSION_NO 202106151, but the server was compiled with CATALOG_VERSION_NO 202107181.
2021-10-27 13:19:29.507 UTC [5112] HINT: It looks like you need to initdb.
2021-10-27 13:19:29.507 UTC [5112] LOG: database system is shut down
【问题讨论】:
-
您需要使用
pg_upgrade。 -
是的,我可以使用升级,但是步骤是什么,我必须先安装新版本吗?
标签: postgresql upgrade beta