如何使用具有 default_value 的 pg_restore 恢复选定的表

问题描述

pg_restore: error: Could not execute query: ERROR:  relation "public.deposit_credential_id_seq" does not exist
Command was: CREATE TABLE public.deposit_credential (
    id integer DEFAULT nextval('public.deposit_credential_id_seq'::regclass) NOT NULL,credential_id integer NOT NULL,deposit_id integer NOT NULL,status character varying(1),is_primary boolean,is_primary_va boolean
);

我有一个结构类似于我想使用 pg_restore 恢复的表,它依赖于另一个表,这就是为什么我必须首先恢复数据..但是当我使用这个命令时 pg_restore -U username -d dbname -p portname -v -t tablename $filename

它不工作,任何想法解决这个问题伙计们

解决方法

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

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

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