我正在关注此网页:
为了进行自动增量。 但是,当我尝试这个标准时,我必须制作的序列现在正在弄乱我的pg_dump:
pg_dump -f /home/admin/db_backup/dump_date.sql -Ox -U username -h localhost db_name
这是我的错误:
pg_dump:[archiver(db)]查询失败:错误:关系权限被拒绝djangocms_showroom_projectcategory_position_seq
pg_dump:[archiver(db)]查询是:SELECT sequence_name,start_value,increment_by,CASE WHEN increment_by> 0 AND max_value = 9223372036854775807在增量_by<时为零0 AND max_value = -1 THEN NULL ELSE max_value END AS max_value,CASE WHEN increment_by> 0和min_value = 1当increment_by< 0 AND min_value = -9223372036854775807 THEN NULL ELSE min_value END AS min_value,cache_value,is_cycled FROM djangocms_showroom_projectcategory_position_seq
所以我尝试了序列的拥有者:
ALTER SEQUENCE djangocms_showroom_projectcategory_position_seq OWNED BY none;
将所有特权授予链接表:
GRANT ALL PRIVILEGES ON TABLE djangocms_blog_blogcategory TO username;
但它仍然没有成功。
之前有没有人遇到过这个问题?