From: Simon Riggs Date: Fri, 2 Apr 2010 17:29:22 +0000 (+0000) Subject: Clarify some behaviours of REASSIGN OWNED and DROP OWNED BY. X-Git-Tag: REL9_0_BETA1~117 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e754a89ea328f766cff5c19d3880d63cc3330f8;p=postgresql Clarify some behaviours of REASSIGN OWNED and DROP OWNED BY. --- diff --git a/doc/src/sgml/ref/drop_owned.sgml b/doc/src/sgml/ref/drop_owned.sgml index 9dd4184916..ced8876b0f 100644 --- a/doc/src/sgml/ref/drop_owned.sgml +++ b/doc/src/sgml/ref/drop_owned.sgml @@ -1,5 +1,5 @@ @@ -92,6 +92,10 @@ DROP OWNED BY name [, ...] [ CASCAD reassigns the ownership of all the database objects owned by one or more roles. + + + Databases owned by the role(s) will not be removed. + diff --git a/doc/src/sgml/ref/reassign_owned.sgml b/doc/src/sgml/ref/reassign_owned.sgml index df37f4a386..f9636479cb 100644 --- a/doc/src/sgml/ref/reassign_owned.sgml +++ b/doc/src/sgml/ref/reassign_owned.sgml @@ -1,5 +1,5 @@ @@ -73,10 +73,17 @@ REASSIGN OWNED BY old_role [, ...] that contains objects owned by a role that is to be removed. + + REASSIGN OWNED requires privileges on both the + source role(s) and the target role. + + The 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 DROP OWNED requires privileges only + on the source role(s).