pg_restore 从 csv 文件

问题描述

使用 pg_restore 从 csv 文件恢复数据库时,我无法从备份文件恢复许多表。

出现以下错误

pg_restore: connecting to database for restore
pg_restore: dropping FK CONSTRAINT gblt_user_mst_gnum_hospital_code_fkey
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 17158; 2606 193690 FK CONSTRAINT gblt_user_mst_gnum_hospital_code_fkey dwh_telangana
pg_restore: [archiver (db)] Could not execute query: ERROR:  schema "dwh_telangana" does not exist
    Command was: ALTER TABLE ONLY dwh_telangana.gblt_user_mst DROP CONSTRAINT gblt_user_mst_gnum_hospital_code_fkey;

可能是什么问题? 可能的解决方案是什么。

任何帮助都会非常有用

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)