我正在使用 Heroku 推荐的 pg:transfer 实用程序来推送和拉取数据库。例如:
heroku pg:transfer -f postgres://username:password@localhost/database-name -t postgres://user-name:password@host-name/database-name --confirm app-name
我已经能够成功地做到这一点,但每次它指出错误在传输结束时被忽略:
WARNING: errors ignored on restore: 59
我需要担心这个吗?
编辑:
我检查了我的输出,每张桌子上似乎都有错误。它似乎删除了序列,然后抛出一个错误,说它不存在。
pg_restore: dropping SEQUENCE OWNED BY roles_id_seq
pg_restore: dropping SEQUENCE roles_id_seq
pg_restore: [archiver (db)] Error from TOC entry 170; 1259 35485 SEQUENCE roles_id_seq postgres
pg_restore: [archiver (db)] could not execute query: ERROR: sequence "roles_id_seq" does not exist Command was: DROP SEQUENCE public.roles_id_seq;