Re: superusers are members of all roles? - Mailing list pgsql-hackers

From Robert Haas
Subject Re: superusers are members of all roles?
Date
Msg-id BANLkTi=StxfiyNxwFPRasGs92P=33ymXqA@mail.gmail.com
Whole thread Raw
In response to Re: superusers are members of all roles?  (Stephen Frost <sfrost@snowman.net>)
Responses Re: superusers are members of all roles?  (Josh Berkus <josh@agliodbs.com>)
Re: superusers are members of all roles?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Wed, Apr 6, 2011 at 7:54 PM, Stephen Frost <sfrost@snowman.net> wrote:
> * Andrew Dunstan (andrew@dunslane.net) wrote:
>> The surprising (to me) consequence was that every superuser was
>> locked out of the system. I had not granted them (or anyone) the
>> role, but nevertheless these lines took effect.
>
> As I recall, the way we allow superusers to set role to other roles is
> by considering the superuser to be a member of every role.  Now, I agree
> that such an approach doesn't make sense for pg_hba consideration.

See bug #5763, and subsequent emails.  Short version: Tom argued it
wasn't a bug; Peter and I felt that it was.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: getting to beta
Next
From: Robert Haas
Date:
Subject: timezone GUC