Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 24df866

Browse files
committed
Doc: clarify that REASSIGN OWNED doesn't handle default privileges.
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
1 parent b7ffa0e commit 24df866

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

doc/src/sgml/ref/drop_owned.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ DROP OWNED BY { <replaceable class="parameter">name</replaceable> | CURRENT_USER
3232
<command>DROP OWNED</command> drops all the objects within the current
3333
database that are owned by one of the specified roles. Any
3434
privileges granted to the given roles on objects in the current
35-
database and on shared objects (databases, tablespaces) will also be
35+
database or on shared objects (databases, tablespaces) will also be
3636
revoked.
3737
</para>
3838
</refsect1>

doc/src/sgml/ref/reassign_owned.sgml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ REASSIGN OWNED BY { <replaceable class="parameter">old_role</replaceable> | CURR
8888

8989
<para>
9090
The <command>REASSIGN OWNED</command> command does not affect any
91-
privileges granted to the <replaceable class="parameter">old_roles</replaceable> for
92-
objects that are not owned by them. Use <command>DROP OWNED</command> to
93-
revoke such privileges.
91+
privileges granted to
92+
the <replaceable class="parameter">old_roles</replaceable> on objects
93+
that are not owned by them. Likewise, it does not affect default
94+
privileges created with <command>ALTER DEFAULT PRIVILEGES</command>.
95+
Use <command>DROP OWNED</command> to revoke such privileges.
9496
</para>
9597

9698
<para>

0 commit comments

Comments
 (0)