Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a8wyZ-0005jq-QJ for pgsql-admin@arkaria.postgresql.org; Tue, 15 Dec 2015 21:17:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a8wyZ-000075-Cy for pgsql-admin@arkaria.postgresql.org; Tue, 15 Dec 2015 21:17:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a8pI5-0001nX-4v for pgsql-admin@postgresql.org; Tue, 15 Dec 2015 13:05:17 +0000 Received: from mx0.elegosoft.com ([78.47.87.163]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1a8pI0-0001S3-9a for pgsql-admin@postgresql.org; Tue, 15 Dec 2015 13:05:16 +0000 Received: from [10.10.10.250] (unknown [10.10.10.250]) by mx0.elegosoft.com (Postfix) with ESMTPSA id B1C5DDE04D for ; Tue, 15 Dec 2015 14:05:10 +0100 (CET) Message-ID: <56701006.4050004@elegosoft.com> Date: Tue, 15 Dec 2015 14:05:10 +0100 From: Michael Anderson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: [REASSIGN confusion] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org I'm confused about the usage (or purpose) of REASSIGN. If I've understood the docs correctly, REASSIGN changes the ownership of all database owned by old_role to new_role, as well as all objects on the *currently* connected database. It seems to me that the most common task for an administrator would be to either: change ownership of all objects on a single database owned by old_role without affecting any other databases or change ownership of all objects on all databases owned by old_role. As I understand it, I can't use REASSIGN to perform either of these tasks. Or am I missing something? Thanks, Mike -- -- Michael Anderson IT Services & Support elego Software Solutions GmbH Gustav-Meyer-Allee 25 Building 12.3 (BIG) room 227 13355 Berlin, Germany phone +49 30 23 45 86 96 michael.anderson at elegosoft.com fax +49 30 23 45 86 95 http://www.elegosoft.com Geschaeftsfuehrer: Olaf Wagner, Sitz Berlin Amtsgericht Berlin-Charlottenburg, HRB 77719, USt-IdNr: DE163214194 -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin