Re: ROLE INHERIT - Mailing list pgsql-general

From Tom Lane
Subject Re: ROLE INHERIT
Date
Msg-id 5343.1171586903@sss.pgh.pa.us
Whole thread Raw
In response to Re: ROLE INHERIT  ("David Legault" <legault.david@gmail.com>)
Responses Re: ROLE INHERIT  (Kenneth Downs <ken@secdat.com>)
List pgsql-general
"David Legault" <legault.david@gmail.com> writes:
> I thought it would transfer that CREATEROLE privilege too.

This is documented someplace ... ah, under CREATE ROLE:

: The INHERIT attribute governs inheritance of grantable privileges (that
: is, access privileges for database objects and role memberships). It
: does not apply to the special role attributes set by CREATE ROLE and
: ALTER ROLE. For example, being a member of a role with CREATEDB
: privilege does not immediately grant the ability to create databases,
: even if INHERIT is set; it would be necessary to become that role via
: SET ROLE before creating a database.

The main reason we did that is that SUPERUSER seemed a bit too dangerous
to be an inheritable privilege.  You could argue the other role
attribute bits either way, but for simplicity they all act the same.

            regards, tom lane

pgsql-general by date:

Previous
From: Casey Duncan
Date:
Subject: Re: Where art thou pg_clog?
Next
From: Alvaro Herrera
Date:
Subject: Re: Where art thou pg_clog?