From: | marcos sr <msr(dot)mailing(at)gmail(dot)com> |
---|---|
To: | |
Cc: | "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: ERROR: 42501: must be member of role "*" |
Date: | 2018-02-06 19:05:24 |
Message-ID: | CAEK-Xk0VJsRDyNV=Y1Lv-oG5_EX-yiC+CdQLBC=T5Og471zVRg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Hello David thanks for attention,
CREATE USER "user" NOCREATEDB NOCREATEUSER NOINHERIT ENCRYPTED PASSWORD
'database'
CREATE DATABASE "database" WITH OWNER "user"
The user creating the db is not psql default. Is a user who creates dbs on
server and have the roles creatdb and create role. Can i give to this user
a superuser privilege?
Sorry for the noob questions, but i'm new on postgres and have this thing
to resolve. Is a legacy system on the company.
Sorry for the top-posting. now it's correct?
2018-02-06 16:13 GMT-02:00 David G. Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>:
> On Tuesday, February 6, 2018, marcos sr <msr(dot)mailing(at)gmail(dot)com> wrote:
>
>> Hello
>>
>> I'm new on postgres. I'm trying to create a database with a user who have
>> CREATEDB role. But I'm getting this error ERROR: 42501: must be member of
>> role "name"
>>
>>
> You need to provide the code that you are running, not just the resultant
> error message.
>
> David J.
>
From | Date | Subject | |
---|---|---|---|
Next Message | Pavan Teja | 2018-02-06 19:12:55 | Re: ERROR: 42501: must be member of role "*" |
Previous Message | David G. Johnston | 2018-02-06 18:13:57 | Re: ERROR: 42501: must be member of role "*" |