繁体   English   中英

PostgreSQL pg_restore错误:授权,撤销

[英]PostgreSQL pg_restore errors: GRANT, REVOKE

我尝试使用以下命令还原PostgreSQL 9.5数据库:

pg_restore -C -d postgres -U postgres --no-owner --role=jsmith the_data.dump

因为我还原到的群集与转储所在的群集不同,所以某些角色不存在。

还原期间存在许多错误,但所有错误都涉及GRANTRESTORE 我可以假定实际数据本身已还原而没有丢失或修改吗?

GRANTREVOKE错误可以忽略。 它们不会影响数据加载。

如果您希望以后避免出现此消息,则可以在pg_restore上使用-x参数(也可以使用同义词--no-acl--no-privileges )。

这将停止pg_restore尝试设置授权。

pg_restore文档, 网址https://www.postgresql.org/docs/current/static/app-pgrestore.html

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM