Re: Role & User - Inheritance?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Alexi Gen" <sqlcatz(at)hotmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Role & User - Inheritance?
Date: 2007-03-16 02:20:47
Message-ID: 29737.1174011647@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Alexi Gen" <sqlcatz(at)hotmail(dot)com> writes:
> Since user01 is tagged to dba01 (who has the SUPERUSER option) - should'nt
> user01 also inherit this?

No, he has to actually SET ROLE to the superuser account to make himself
a superuser. SUPERUSER and the other non-GRANTable attributes of a role
don't inherit through mere membership. This is partly an implementation
limitation but I happen to think it's a good idea ... superuserness is a
mighty big hammer to be letting loose accidentally.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message louis gonzales 2007-03-16 03:14:50 Practical question.
Previous Message Tom Lane 2007-03-16 02:08:40 Re: pg_dump warning format?