Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb3bd819

Browse files
committed
Doc: clarify that REASSIGN OWNED doesn't handle default privileges.
It doesn't touch regular privileges either, but only the latter wasexplicitly stated.Discussion:https://postgr.es/m/155348282848.9808.12629518043813943231@wrigleys.postgresql.org
1 parent8edd0e7 commitb3bd819

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-
databaseand on shared objects (databases, tablespaces) will also be
35+
databaseor 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)

[8]ページ先頭

©2009-2025 Movatter.jp