运行pg_restore
时出现以下错误
pg_restore: error: unsupported version (1.15) in file header
Docker容器(运行图像postgres:14.10
)提供的版本
root@c33fdb601eab:/# postgres --version
postgres (PostgreSQL) 14.10 (Debian 14.10-1.pgdg120+1)
root@c33fdb601eab:/# pg_restore --version
pg_restore (PostgreSQL) 14.10 (Debian 14.10-1.pgdg120+1)
那么,请问这个版本1.15
是什么意思?它是否指示*.sql转储文件版本?如果是,我如何知道使用哪个pg_restore
版本才能恢复它?
PS:显然已经有很多类似的帖子了,但我没有找到一个解释如何将转储文件版本与PG_Restore版本相匹配的答案.