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

From Stephen Frost
Subject Re: superusers are members of all roles?
Date
Msg-id 20110407141439.GD4548@tamriel.snowman.net
Whole thread Raw
In response to Re: superusers are members of all roles?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> The problem here is that if Andrew had had the opposite case (a
> positive-logic hba entry requiring membership in some group to get into
> a database), and that had locked out superusers, he'd be on the warpath
> about that too.  And with a lot more reason.

I disagree about this.  I don't feel that the 'superuser is a member of
every role' behavior is what's really crucial here, it's that a
superuser can 'set role' to any other role and can grant/revoke
role memberships, and read every table, etc.

The fact that we're doing that by making the superuser be a member of
every role feels more like an implementation detail- one which has now
bitten us because it's affecting things that it really shouldn't.  The
'+group' list should be derivable from pg_auth_members and not include
'implicit' roles.
Thanks,
    Stephen

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: pg_upgrade fix for pg_largeobject_metadata
Next
From: Alvaro Herrera
Date:
Subject: Re: [BUGS] Failed assert ((data - start) == data_size) in heaptuple.c