升级到想要使用校验和的Postgres 10

时间:2018-08-30 20:12:40

标签: postgresql upgrade postgresql-10

我有一个要升级到postgresql 10的postgresql 9.3实例。我有一个我认为应该可以使用的命令,但其中包含校验和。我的旧实例没有启用校验和(可能根本没有吗?算了太久了),这妨碍了我的空运行正常。

错误消息

Performing Consistency Checks on Old Live Server
------------------------------------------------
Checking cluster versions                                   ok

old cluster does not use data checksums but the new one does
Failure, exiting

我的命令删除了真实路径

time ${PGBINNEW}/pg_upgrade --old-bindir=${PGBINOLD} --new-bindir=${PGBINNEW} --old-datadir=${PGDATAOLD} --new-datadir=${PGDATANEW} --old-port=${PGPORT} --new-port=${PGPORT} --jobs=$(nproc | awk '{ {print ($1 > 4) ? 4 : ($1 == 1 ? 1 : $1 - 1)} }') --link --username=postgres --check

该如何解决?

1 个答案:

答案 0 :(得分:0)

解决以上 旧群集不使用数据校验和,而新群集使用 失败,退出 错误:安装新数据集群时

.initdb -k -D /您的数据目录路径/ 然后进行升级