Role membership of superusers is only by explicit membership for HBA.
authorAndrew Dunstan <andrew@dunslane.net>
Thu, 3 Nov 2011 20:29:41 +0000 (16:29 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 3 Nov 2011 20:29:41 +0000 (16:29 -0400)
Document that this rule applies to 'samerole' as well as to named roles.

Per gripe from Tom Lane.

doc/src/sgml/client-auth.sgml

index 6493d302c7ff5de359aa213e29155239e0e5efd7..31ce45d4ca2e279697f1dad83e49e02469411039 100644 (file)
@@ -186,6 +186,10 @@ hostnossl  <replaceable>database</replaceable>  <replaceable>user</replaceable>
        the requested user must be a member of the role with the same
        name as the requested database.  (<literal>samegroup</> is an
        obsolete but still accepted spelling of <literal>samerole</>.)
+       Superusers are not considered to be members of a role for the
+       purposes of <literal>samerole</> unless they are explicitly
+       members of the role, directly or indirectly, and not just by 
+       virtue of being a superuser.
        The value <literal>replication</> specifies that the record
        matches if a replication connection is requested (note that
        replication connections do not specify any particular database).