Commit b3bd8196 authored by Tom Lane's avatar Tom Lane

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
parent 8edd0e79
...@@ -32,7 +32,7 @@ DROP OWNED BY { <replaceable class="parameter">name</replaceable> | CURRENT_USER ...@@ -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 <command>DROP OWNED</command> drops all the objects within the current
database that are owned by one of the specified roles. Any database that are owned by one of the specified roles. Any
privileges granted to the given roles on objects in the current 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. revoked.
</para> </para>
</refsect1> </refsect1>
......
...@@ -88,9 +88,11 @@ REASSIGN OWNED BY { <replaceable class="parameter">old_role</replaceable> | CURR ...@@ -88,9 +88,11 @@ REASSIGN OWNED BY { <replaceable class="parameter">old_role</replaceable> | CURR
<para> <para>
The <command>REASSIGN OWNED</command> command does not affect any The <command>REASSIGN OWNED</command> command does not affect any
privileges granted to the <replaceable class="parameter">old_roles</replaceable> for privileges granted to
objects that are not owned by them. Use <command>DROP OWNED</command> to the <replaceable class="parameter">old_roles</replaceable> on objects
revoke such privileges. 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>
<para> <para>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment