pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: spam_eater@gmx.net <spam_eater@gmx.net>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Cc: Jaime Casanova <jaime@2ndquadrant.com>
Subject: Re: Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262"
Date: Fri, 25 Jan 2013 17:15:32 -0300
Message-ID: <20130125201532.GJ5584@alvh.no-ip.org> (raw)
In-Reply-To: <20130125195716.GI5584@alvh.no-ip.org>
References: <E1ThhcE-0001nJ-1v@wrigleys.postgresql.org>
	<11629.1355071394@sss.pgh.pa.us>
	<20121210041307.GA13156@alvh.no-ip.org>
	<CAMkU=1xbchvew5g2qqRjFy_hEkYFFgGXQE3cjEcV3eWCCsO3eQ@mail.gmail.com>
	<20130125195716.GI5584@alvh.no-ip.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Alvaro Herrera escribió:

> On the other hand, running REASSIGN OWNED means to reassign ownership of
> objects to some other user.  There is no reason this cannot be done to
> shared objects as well as local objects.  I note, though, that REASSIGN
> OWNED's documentation mentions "objects in the current database"; but in
> spirit, the point of it is to drop users.  So applying to shared objects
> seems within charter to me.

FWIW, the docs for REASSIGN OWNED have a note at the bottom:
 "The REASSIGN OWNED command does not affect the ownership of any
 databases owned by the role."

This was added because Josh Berkus commanded us to:
http://www.postgresql.org/message-id/4BE2367C.30605@agliodbs.com

As far as I'm concerned, that note should be removed.  Also, there's
this bit:

	"Because REASSIGN OWNED only affects the objects in the current
	database, it is usually necessary to execute this command in each
	database that contains objects owned by a role that is to be removed."

This would be reworded thusly:

	"Because REASSIGN OWNED does not affect objects in other
	databases, it is usually necessary to execute this command in each
	database that contains objects owned by a role that is to be removed."

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (17+ messages)  latest in thread

Message-ID: <20130125201532.GJ5584@alvh.no-ip.org>
Permalink:  ../20130125201532.GJ5584@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20130125201532.GJ5584@alvh.no-ip.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: alvherre@2ndquadrant.com, jeff.janes@gmail.com, tgl@sss.pgh.pa.us, spam_eater@gmx.net, jaime@2ndquadrant.com
  Subject: Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262"
  In-Reply-To: <20130125201532.GJ5584@alvh.no-ip.org>
  References: <E1ThhcE-0001nJ-1v@wrigleys.postgresql.org> <11629.1355071394@sss.pgh.pa.us> <20121210041307.GA13156@alvh.no-ip.org> <CAMkU=1xbchvew5g2qqRjFy_hEkYFFgGXQE3cjEcV3eWCCsO3eQ@mail.gmail.com> <20130125195716.GI5584@alvh.no-ip.org> <20130125201532.GJ5584@alvh.no-ip.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox