mirror of
https://github.com/postgres/postgres.git
synced 2025-12-22 17:42:17 +03:00
docs: Fix up some out-of-date references to INHERIT/NOINHERIT.
Commit e3ce2de09d should have updated
these sections of the documentation, but failed to do so.
Patch by me, reviewed by Nathan Bossart.
Discussion: http://postgr.es/m/CA+TgmoaKMnde2W_=u7CqeCKi=FKnfbNQPwOR=c_3c8qD7b2nhQ@mail.gmail.com
This commit is contained in:
@@ -71,15 +71,16 @@ RESET ROLE
|
||||
|
||||
<para>
|
||||
Using this command, it is possible to either add privileges or restrict
|
||||
one's privileges. If the session user role has the <literal>INHERIT</literal>
|
||||
attribute, then it automatically has all the privileges of every role that
|
||||
it could <command>SET ROLE</command> to; in this case <command>SET ROLE</command>
|
||||
effectively drops all the privileges assigned directly to the session user
|
||||
and to the other roles it is a member of, leaving only the privileges
|
||||
available to the named role. On the other hand, if the session user role
|
||||
has the <literal>NOINHERIT</literal> attribute, <command>SET ROLE</command> drops the
|
||||
privileges assigned directly to the session user and instead acquires the
|
||||
privileges available to the named role.
|
||||
one's privileges. If the session user role has been granted memberships
|
||||
<literal>WITH INHERIT TRUE</literal>, it automatically has all the
|
||||
privileges of every such role. In this case, <command>SET ROLE</command>
|
||||
effectively drops all the privileges except for those which the target role
|
||||
directly possesses or inherits. On the other hand, if the session user role
|
||||
has been granted memberships <literal>WITH INHERIT FALSE</literal>, the
|
||||
privileges of the granted roles can't be accessed by default. However, the
|
||||
session user can use <command>SET ROLE</command> to drop the privileges
|
||||
assigned directly to the session user and instead acquire the privileges
|
||||
available to the named role.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
||||
Reference in New Issue
Block a user