[英]pg_restore throws warnings and return exit 1
I am trying to restore a PostgreSQL database using the command below: 我正在尝试使用以下命令恢复PostgreSQL数据库:
pg_restore --verbose --clean --no-acl --no-owner -h localhost -p 5432 -U postgres -w -d databaseName Backup.dump
The restoring is done successfully. 恢复成功完成。 But it displays below warning message in the end.
但它最终显示在警告信息下面。
WARNING: errors ignored on restore: 97
Due to which my shell script is failing as the command returns exit 1 code. 由于该命令返回退出1代码,因此我的shell脚本失败。
Can anyone please guide on this? 有谁可以请指导这个?
可以通过删除数据库,创建数据库然后存储干净的数据库来完成。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.