From: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
---|---|
To: | gromitracer <george_m_se(at)yahoo(dot)com> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: New to postgresql - Do I have to be a "superuser" to be able to create a database? |
Date: | 2014-01-06 19:58:12 |
Message-ID: | CAMkU=1zE9oDv9pLUn596xFKpRX4gOnv+xPNopDVJ9yCVZryA-Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Sun, Jan 5, 2014 at 7:32 PM, gromitracer <george_m_se(at)yahoo(dot)com> wrote:
> Hello all. I am more accustomed in doing things the Oracle way and I am
> trying to get a hold postgres :)
>
> Below are my roles/users and their attributes. Posgresql version: 9.2
>
> Role name | Attributes
> | Member of
>
> ---------------+-------------------------------------------------------------------------------+----------------
> devs | Create DB, Cannot login
> | {}
> batman |
> | {devs}
> postgres | Superuser, Create role, Create DB, Replication |
> {}
>
>
> As you can see:
> role: DEVS is configured to be able to create a database.
> user: batman is member of DEVS
>
CreateDB is not inherited. It must be granted directly to the role that
will use it.
http://www.postgresql.org/docs/9.3/static/role-membership.html
Cheers,
Jeff
From | Date | Subject | |
---|---|---|---|
Next Message | Vincent Veyron | 2014-01-06 21:23:14 | Re: New to postgresql - Do I have to be a "superuser" to be able to create a database? |
Previous Message | AI Rumman | 2014-01-06 19:57:20 | EMC SRDF technology for creating replication with Postgresql? |