pgsql: REASSIGN OWNED: handle shared objects, too

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: REASSIGN OWNED: handle shared objects, too
Date: 2013-01-28 22:32:00
Message-ID: E1TzxFA-0006TR-U9@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

REASSIGN OWNED: handle shared objects, too

Give away ownership of shared objects (databases, tablespaces) along
with local objects, per original code intention. Try to make the
documentation clearer, too.

Per discussion about DROP OWNED's brokenness, in bug #7748.

This is not backpatched because it'd require some refactoring of the
ALTER/SET OWNER code for databases and tablespaces.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ee22c55f5ad2e7b7032cd6c0243254d84d4496c7

Modified Files
--------------
doc/src/sgml/ref/reassign_owned.sgml | 15 +++++----------
src/backend/catalog/pg_shdepend.c | 10 ++++++++--
2 files changed, 13 insertions(+), 12 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2013-01-28 22:32:01 pgsql: DROP OWNED: don't try to drop tablespaces/databases
Previous Message Heikki Linnakangas 2013-01-28 07:48:32 pgsql: Handle SPIErrors raised directly in PL/Python code.