我使用pg_restore恢复了一个数据库,虽然数据已经被还原,但是却抛出了一些错误。这些错误的原因是什么?
以下是用于还原的命令:
pg_restore -U postgres -d newdb08aug19 -j5 remote
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 7616;
2606 36663585 FK CONSTRAINT card_history_cashcard_id_fk unify37
pg_restore: [archiver (db)] could not execute query: ERROR: relation "public.voucher" does not exist
Command was: ALTER TABLE ONLY finance.card_history
ADD CONSTRAINT card_history_cashcard_id_fk FOREIGN KEY (cashcard_id) REFERENCES pu...
pg_restore: [archiver (db)] Error from TOC entry 7614; 2606 36662489 FK CONSTRAINT card_history_coupon_id_fk unify37
pg_restore: [archiver (db)] could not execute query: ERROR: relation "public.cpn" does not exist
Command was: ALTER TABLE ONLY finance.card_history
ADD CONSTRAINT card_history_coupon_id_fk FOREIGN KEY (coupon_id) REFERENCES public...
pg_restore: [archiver (db)] Error from TOC entry 7615; 2606 36663406 FK CONSTRAINT card_history_domno_fk unify37
pg_restore: [archiver (db)] could not execute query: ERROR: relation "public.ssgdom" does not exist
Command was: ALTER TABLE ONLY finance.card_history
ADD CONSTRAINT card_history_domno_fk FOREIGN KEY (domno) REFERENCES public.ssgdom(...
这些错误的原因是什么?