]> granicus.if.org Git - postgresql/commitdiff
Doc: clarify that REASSIGN OWNED doesn't handle default privileges.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 25 Mar 2019 21:18:05 +0000 (17:18 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 25 Mar 2019 21:18:05 +0000 (17:18 -0400)
It doesn't touch regular privileges either, but only the latter was
explicitly stated.

Discussion: https://postgr.es/m/155348282848.9808.12629518043813943231@wrigleys.postgresql.org

doc/src/sgml/ref/drop_owned.sgml
doc/src/sgml/ref/reassign_owned.sgml

index 81694b88e535b5d8a2210d20dbf15c3b29d0cdba..f501e3e66c42928cf8179886e50f4bbc85f71942 100644 (file)
@@ -32,7 +32,7 @@ DROP OWNED BY { <replaceable class="PARAMETER">name</replaceable> | CURRENT_USER
    <command>DROP OWNED</command> drops all the objects within the current
    database that are owned by one of the specified roles. Any
    privileges granted to the given roles on objects in the current
-   database and on shared objects (databases, tablespaces) will also be
+   database or on shared objects (databases, tablespaces) will also be
    revoked.
   </para>
  </refsect1>
index ccd038629bf7f35e031a08e4106cc9824169a5b0..41a57c8f3686fc52787f08b7ec289ae296ae2d19 100644 (file)
@@ -88,9 +88,11 @@ REASSIGN OWNED BY { <replaceable class="PARAMETER">old_role</replaceable> | CURR
 
   <para>
    The <command>REASSIGN OWNED</command> command does not affect any
-   privileges granted to the <replaceable class="PARAMETER">old_roles</> for
-   objects that are not owned by them.  Use <command>DROP OWNED</command> to
-   revoke such privileges.
+   privileges granted to
+   the <replaceable class="parameter">old_roles</replaceable> on objects
+   that are not owned by them.  Likewise, it does not affect default
+   privileges created with <command>ALTER DEFAULT PRIVILEGES</command>.
+   Use <command>DROP OWNED</command> to revoke such privileges.
   </para>
 
   <para>