From 3e754a89ea328f766cff5c19d3880d63cc3330f8 Mon Sep 17 00:00:00 2001 From: Simon Riggs Date: Fri, 2 Apr 2010 17:29:22 +0000 Subject: [PATCH] Clarify some behaviours of REASSIGN OWNED and DROP OWNED BY. --- doc/src/sgml/ref/drop_owned.sgml | 6 +++++- doc/src/sgml/ref/reassign_owned.sgml | 11 +++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) 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). -- 2.40.0