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

Commit3e754a8

Browse files
Clarify some behaviours of REASSIGN OWNED and DROP OWNED BY.
1 parent33065ef commit3e754a8

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

‎doc/src/sgml/ref/drop_owned.sgml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_owned.sgml,v 1.6 2008/11/14 10:22:46 petere Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_owned.sgml,v 1.7 2010/04/02 17:29:22 sriggs Exp $
33
PostgreSQL documentation
44
-->
55

@@ -92,6 +92,10 @@ DROP OWNED BY <replaceable class="PARAMETER">name</replaceable> [, ...] [ CASCAD
9292
reassigns the ownership of all the database objects owned by one or
9393
more roles.
9494
</para>
95+
96+
<para>
97+
Databases owned by the role(s) will not be removed.
98+
</para>
9599
</refsect1>
96100

97101
<refsect1>

‎doc/src/sgml/ref/reassign_owned.sgml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/reassign_owned.sgml,v 1.4 2008/11/14 10:22:47 petere Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/reassign_owned.sgml,v 1.5 2010/04/02 17:29:22 sriggs Exp $
33
PostgreSQL documentation
44
-->
55

@@ -73,10 +73,17 @@ REASSIGN OWNED BY <replaceable class="PARAMETER">old_role</replaceable> [, ...]
7373
that contains objects owned by a role that is to be removed.
7474
</para>
7575

76+
<para>
77+
<command>REASSIGN OWNED</command> requires privileges on both the
78+
source role(s) and the target role.
79+
</para>
80+
7681
<para>
7782
The <xref linkend="sql-drop-owned"
7883
endterm="sql-drop-owned-title"> command is an alternative that
79-
drops all the database objects owned by one or more roles.
84+
drops all the database objects owned by one or more roles. Note
85+
also that <command>DROP OWNED</command> requires privileges only
86+
on the source role(s).
8087
</para>
8188

8289
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp