简体   繁体   English

pg_restore: [archiver] 文件头中不受支持的版本 (1.13)

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

C:\Program Files (x86)\pgAdmin III\1.22\pg_restore.exe --host localhost --port 5432 --username "postgres" --dbname "randd" --role "postgres" --no-password  --verbose "C:\Users\ranjeet\Desktop\RandDbackup19-3final.backup"

pg_restore: [archiver] 文件头中不受支持的版本 (1.13)

This error means that you are using an old and outdated version of pg_restore (and hence PostgreSQL) on the client side.此错误意味着您在客户端使用旧的和过时的pg_restore (以及 PostgreSQL)版本。 The dump was created by a more recent release of PostgreSQL that the one installed, so your pg_restore does not know how to handle it.转储是由安装的最新版本的 PostgreSQL 创建的,因此您的pg_restore不知道如何处理它。

Archive version 1.13 was introduced by commit 3d2aed664ee8271fd6c721ed0aa10168cda112ea in February 2018. It has been available since the point releases 10.3, 9.6.8, 9.5.12, 9.4.17 and 9.3.22.归档版本 1.13 是由 2018 年 2 月提交 3d2aed664ee8271fd6c721ed0aa10168cda112ea引入的。自 10.3、9.6.8、9.5.12、9.4.12 和 9.3.3.3.3.3.3.3.3.3.3.3.3.3.3.3.3.3.3.3 版发布以来,它已经可用。

You should upgrade your PostgreSQL installation, particularly because this release and this patch contain security relevant bug fixes.你应该升级你的 PostgreSQL 安装,特别是因为这个版本和这个补丁包含安全相关的错误修复。

No need to upgrade to the latest Postgres version.无需升级到最新的 Postgres 版本。

We can backup and restore from any Postgres version to any as follows.我们可以按如下方式从任何 Postgres 版本备份和恢复到任何版本。

Create a backup in plain SQL format using pg_dump as follows in local/dev machine在本地/开发机器中使用 pg_dump 创建一个纯 SQL 格式的备份,如下所示

pg_dump -U postgres -W -F p test > test.sql

Then use psql to restore dump on remote machine然后使用 psql 在远程机器上恢复转储

psql -U postgres -W -d test -f test.sql

It works, on windows as well as Linux environments.它适用于 Windows 和 Linux 环境。

Please note if you see an error message while restoring on the remote machine like 'ERROR: unrecognized configuration parameter "default_table_access_method"'.请注意,如果您在远程计算机上恢复时看到错误消息,例如“错误:无法识别的配置参数“default_table_access_method””。 You can simply ignore this message, as "default_table_access_method" option is introduced in Postgres 12 and while taking backedup added in sql file.您可以简单地忽略此消息,因为 Postgres 12 中引入了“default_table_access_method”选项,同时在 sql 文件中添加了备份。

暂无
暂无

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

相关问题 pg_restore错误:pg_restore:文件头中的[archiver]不支持的版本(1.13) - pg_restore error: pg_restore: [archiver] unsupported version (1.13) in file header AWS Elatic Beanstalk和rails:pg_restore:文件头中的[archiver]不支持的版本(1.13) - AWS Elatic Beanstalk and rails: pg_restore: [archiver] unsupported version (1.13) in file header 运行 pg_restore 时在文件头中获取“[archiver] 不受支持的版本(1.13)” - Getting "[archiver] unsupported version (1.13) in file header" when running pg_restore pg_restore: [archiver] 文件头中不支持的版本 (1.14) - pg_restore: [archiver] unsupported version (1.14) in file header pg_restore: [archiver] postgres 中的输入文件太短错误 - pg_restore: [archiver] input file is too short error in postgres pg_restore:[tar archiver] 在 tar 存档中找不到文件“toc.dat”的 header:- [PostgreSQL-11] pg admin 4 - pg_restore: [tar archiver] could not find header for file "toc.dat" in tar archive :- [PostgreSQL-11] pg admin 4 pg_restore: [目录归档程序] 无法打开输入文件。 尝试恢复数据库时出错 - pg_restore: [directory archiver] could not open input file. Error while trying to restore DB Postgres 教程:pg_restore:[archiver] 输入文件似乎不是有效的存档 - Postgres Tutorial: pg_restore: [archiver] input file does not appear to be a valid archive pg_restore:[存档]输入文件在使用Pgadmin 4的PostgreSQL中似乎不是有效的存档错误 - pg_restore: [archiver] input file does not appear to be a valid archive error in PostgreSQL using Pgadmin 4 pg_restore:[archiver]输入文件在ubuntu 18.04中使用Pgadmin 4的PostgreSQL中似乎不是有效的存档错误 - pg_restore: [archiver] input file does not appear to be a valid archive error in PostgreSQL using Pgadmin 4 in ubuntu 18.04
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM