]> granicus.if.org Git - postgresql/commitdiff
Clarify some behaviours of REASSIGN OWNED and DROP OWNED BY.
authorSimon Riggs <simon@2ndQuadrant.com>
Fri, 2 Apr 2010 17:29:22 +0000 (17:29 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Fri, 2 Apr 2010 17:29:22 +0000 (17:29 +0000)
doc/src/sgml/ref/drop_owned.sgml
doc/src/sgml/ref/reassign_owned.sgml

index 9dd4184916da748fcd602a24a75a233a1c3e117d..ced8876b0fc5db18456b5f8b97545632ae405f69 100644 (file)
@@ -1,5 +1,5 @@
 <!--
-$PostgreSQL: pgsql/doc/src/sgml/ref/drop_owned.sgml,v 1.6 2008/11/14 10:22:46 petere Exp $
+$PostgreSQL: pgsql/doc/src/sgml/ref/drop_owned.sgml,v 1.7 2010/04/02 17:29:22 sriggs Exp $
 PostgreSQL documentation
 -->
 
@@ -92,6 +92,10 @@ DROP OWNED BY <replaceable class="PARAMETER">name</replaceable> [, ...] [ CASCAD
    reassigns the ownership of all the database objects owned by one or
    more roles.
   </para>
+
+  <para>
+   Databases owned by the role(s) will not be removed.
+  </para>
  </refsect1>
 
  <refsect1>
index df37f4a386b1c298807f84d742e7dff80f505b23..f9636479cb5ee3f0433b49384c77697aa55f2a6f 100644 (file)
@@ -1,5 +1,5 @@
 <!--
-$PostgreSQL: pgsql/doc/src/sgml/ref/reassign_owned.sgml,v 1.4 2008/11/14 10:22:47 petere Exp $
+$PostgreSQL: pgsql/doc/src/sgml/ref/reassign_owned.sgml,v 1.5 2010/04/02 17:29:22 sriggs Exp $
 PostgreSQL documentation
 -->
 
@@ -73,10 +73,17 @@ REASSIGN OWNED BY <replaceable class="PARAMETER">old_role</replaceable> [, ...]
    that contains objects owned by a role that is to be removed.
   </para>
 
+  <para>
+   <command>REASSIGN OWNED</command> requires privileges on both the
+   source role(s) and the target role.
+  </para>
+
   <para>
    The <xref linkend="sql-drop-owned"
     endterm="sql-drop-owned-title"> command is an alternative that
-   drops all the database objects owned by one or more roles.
+   drops all the database objects owned by one or more roles. Note
+   also that <command>DROP OWNED</command> requires privileges only
+   on the source role(s).
   </para>
 
   <para>