REASSIGN OWNED BY for 1 specified database

后端 未结 1 1898
情歌与酒
情歌与酒 2021-02-19 01:19

I want to change owner of all tables in one particular database using

REASSIGN OWNED BY postgres TO myuser

but it shows:

ERR         


        
相关标签:
1条回答
  • 2021-02-19 01:53

    Because the postgres user owns system catalogs, you cannot reassign all objects owned by postgres. You will have to sort out this situation by hand in this case. In the future, avoid using postgres for non-administrative tasks.

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