pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Jeff Janes <jeff.janes@gmail.com>
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: Mon, 28 Jan 2013 15:04:59 -0500
Message-ID: <22507.1359403499@sss.pgh.pa.us> (raw)
In-Reply-To: <20130128200005.GB4050@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>
	<29842.1359162545@sss.pgh.pa.us>
	<20130128200005.GB4050@alvh.no-ip.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> I had a look at what it'd take to backpatch.  For REASSIGN OWNED, you're
> right that it'd require some refactoring, and it's probably not
> worthwhile (the code is not really all that complicated).  However, for
> DROP OWNED the proposed hunks apply fine.  Only 8.3 needs a different
> patch, but it's only because whitespace is different.

> So what we would end up with, is that DROP OWNED works for shared
> objects (i.e. grants on tablespaces and databases are revoked), but
> REASSIGN OWNED does not; so you're forced to do ALTER
> DATABASE/TABLESPACE SET OWNER.

> Since it's the grants that are more likely to cause headaches than
> ownership when trying to drop users, I suggest that applying those
> patches is the most convenient.  (We know that this is a real problem
> because of the bug reports we've gotten.)

Seems reasonable to me.

			regards, tom lane


-- 
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: <22507.1359403499@sss.pgh.pa.us>
Permalink:  ../22507.1359403499@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22507.1359403499@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, jeff.janes@gmail.com, 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: <22507.1359403499@sss.pgh.pa.us>
  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> <29842.1359162545@sss.pgh.pa.us> <20130128200005.GB4050@alvh.no-ip.org> <22507.1359403499@sss.pgh.pa.us>

* 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