PostgreSQL pg_restore错误:GRANT,REVOKE

时间:2017-04-03 12:45:01

标签: database postgresql restore

我尝试使用以下命令恢复PostgreSQL 9.5数据库:

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

由于我恢复的群集与群集的转储不同,因此某些角色不存在。

还原过程中出现了许多错误,但所有错误都涉及GRANTRESTORE。我可以假设实际数据本身已经恢复而没有丢失或修改吗?

1 个答案:

答案 0 :(得分:2)

可以忽略 @Override public void onBackPressed() { Intent intent=new Intent(Caly_act.this,MainActivity_tab.class); startActivity(intent); finish(); } GRANT错误。它们不会影响数据加载。

如果您希望以后再避免这些消息,可以使用REVOKE上的-x参数(您也可以使用同义词pg_restore--no-acl )。

这会阻止--no-privileges尝试设置授权。

pg_restore docs https://www.postgresql.org/docs/current/static/app-pgrestore.html

相关问题