簡體   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