pg_restore error: role XXX does not exist

后端 未结 1 498
暗喜
暗喜 2021-02-01 12:00

Trying to replicate a database from one system to another. The versions involved are 9.5.0 (source) and 9.5.2 (target).

Source db name is foodb with owner

相关标签:
1条回答
  • 2021-02-01 12:42

    I realized the --no-owner is not the same as the -x. I added the -x to all pg_dump commands, which means:

    -x, --no-privileges          do not dump privileges (grant/revoke)
    

    which in effect excludes the offending GRANT/REVOKE commands from the dump. Problem resolved.

    0 讨论(0)
提交回复
热议问题