]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
doc: ALTER DEFAULT PRIVILEGES does not affect inherited roles
authorBruce Momjian <bruce@momjian.us>
Fri, 3 Nov 2023 13:51:52 +0000 (09:51 -0400)
committerBruce Momjian <bruce@momjian.us>
Fri, 3 Nov 2023 13:51:52 +0000 (09:51 -0400)
Reported-by: Jordi GutiƩrrez Hermoso
Discussion: https://postgr.es/m/72652d72e1816bfc3c05d40f9e0e0373d07823c8.camel@octave.org

Co-authored-by: Laurenz Albe
Backpatch-through: 11

doc/src/sgml/ref/alter_default_privileges.sgml

index 4a4878c438036ef7abd63b62bdb5f4ca2b18e7ff..a2849c8c77009286d69664077fff12d351e34566 100644 (file)
@@ -137,7 +137,11 @@ REVOKE [ GRANT OPTION FOR ]
     <listitem>
      <para>
       The name of an existing role of which the current role is a member.
-      If <literal>FOR ROLE</literal> is omitted, the current role is assumed.
+      Default access privileges are not inherited, so member roles
+      must use <command>SET ROLE</command> to access these privileges,
+      or <command>ALTER DEFAULT PRIVILEGES</command> must be run for
+      each member role.  If <literal>FOR ROLE</literal> is omitted,
+      the current role is assumed.
      </para>
     </listitem>
    </varlistentry>