我正在使用 pgAdmin 4,我想恢复我的旧数据库备份文件(txt.gz 格式)。
我尝试使用 pgAdmin 进行恢复,但收到如下错误消息:
pg_restore: [archiver] input file does not appear to be a valid archive
最佳答案
请尝试使用以下命令
gunzip -c filename.gz | psql dbname
关于postgresql - 如何从 .txt.gz 文件恢复 postgresql 数据库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57551208/