简体   繁体   English

如何在 Centos 7.4 上将 postgrsql 版本从 9.6.5 升级到 9.6.14

[英]How to upgrade postgrsql version from 9.6.5 to 9.6.14 on Centos 7.4

I have problem with restoring databases from backup because backup was created on the 9.6.14 pg_restore's version.我从备份恢复数据库有问题,因为备份是在 9.6.14 pg_restore 的版本上创建的。 When I want to restore my databases on the another host (with the 9.6.5 postgres version), I get this error:当我想在另一台主机(使用 9.6.5 postgres 版本)上恢复我的数据库时,我收到此错误:

pg_restore: [archiver] unsupported version (1.13) in file header

Backups was created with Fc flag so I have to use pg_restore tool to restore it.备份是使用Fc标志创建的,所以我必须使用 pg_restore 工具来恢复它。 So I decided to upgrade my postgres version to 9.6.14 on my centos 7 but I do not know how to do it.所以我决定在我的 centos 7 上将我的 postgres 版本升级到 9.6.14,但我不知道该怎么做。 How do I download and install 9.6.14 rpm?如何下载和安装 9.6.14 rpm?

Assuming that you are using the PGDG packages, that should be as simple as假设您使用的是 PGDG 包,那应该很简单

yum update postgresql96

You should update all installed PostgreSQL packages in this fashion.您应该以这种方式更新所有已安装的 PostgreSQL 软件包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM