简体   繁体   English

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

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

im trying to restore a table from a backup file with pg_restore. 我试图用pg_restore从备份文件恢复表。 However i get the error mentioned above. 但是我得到了上面提到的错误。 I read everywhere that an upgraded version of postgres is needed. 我到处都读到需要升级版的postgres。 I upgraded mine to 9.6.8-1 and then 10.3-1. 我将我的升级到9.6.8-1然后升级到10.3-1。 Both did not work. 两者都没用。 Does anybody have a detailed procedure to fix this problem using a windows OS? 有没有人有一个详细的程序来解决使用Windows操作系统的这个问题? Thanks in advance 提前致谢

Solved for me - 解决了我 -

I had the same error restoring from PgAdmin4 on a computer with multiple Postgrsql versions installed. 我在安装了多个Postgrsql版本的计算机上从PgAdmin4恢复时遇到了同样的错误。 It was calling an older pg_restore version. 它正在调用一个较旧的pg_restore版本。 In PgAdmin I changed the binary path in File/Preferences/Binary Path from $DIR/../runtime to C:\\Program Files\\PostgreSQL\\10\\bin and that fixed my issue. 在PgAdmin中,我将文件/首选项/二进制路径中的二进制路径从$ DIR /../运行时更改为C:\\ Program Files \\ PostgreSQL \\ 10 \\ bin,这解决了我的问题。 I suspect your having a similar issue at which you are unknowingly calling an older pg_restore version even though you updated postgresql. 我怀疑你有一个类似的问题,即使你更新了postgresql,你在不知不觉中调用了一个较旧的pg_restore版本。

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

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