[英]PostgreSQL pg_restore errors: GRANT, REVOKE
我嘗試使用以下命令還原PostgreSQL 9.5數據庫:
pg_restore -C -d postgres -U postgres --no-owner --role=jsmith the_data.dump
因為我還原到的群集與轉儲所在的群集不同,所以某些角色不存在。
還原期間存在許多錯誤,但所有錯誤都涉及GRANT
和RESTORE
。 我可以假定實際數據本身已還原而沒有丟失或修改嗎?
GRANT
和REVOKE
錯誤可以忽略。 它們不會影響數據加載。
如果您希望以后避免出現此消息,則可以在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.