“ERROR: must be member of role” When creating schema in PostgreSQL

前端 未结 9 573
粉色の甜心
粉色の甜心 2021-01-31 13:01

I\'m logged in with a superuser account and this is the process I\'m doing:

1-> CREATE ROLE test WITH IN ROLE testroles PASSWORD \'testpasswd\'
2-> CREATE S         


        
9条回答
  •  后悔当初
    2021-01-31 13:32

    I came across this same problem, it is complaining about the current(master) user you are logged in with is not a member of the user group you are try to create the schema for. You should grant the role access to your master user and it will let you create the SCHEMA without error:

    GRANT  TO ;
    

提交回复
热议问题