Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tzux1-0002Ka-0f for pgsql-bugs@arkaria.postgresql.org; Mon, 28 Jan 2013 20:05:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tzux0-0001yy-ET for pgsql-bugs@arkaria.postgresql.org; Mon, 28 Jan 2013 20:05:06 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tzuwz-0001wv-3S for pgsql-bugs@postgresql.org; Mon, 28 Jan 2013 20:05:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tzuwx-00020Y-Fv for pgsql-bugs@postgresql.org; Mon, 28 Jan 2013 20:05:04 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r0SK4x9q022508; Mon, 28 Jan 2013 15:04:59 -0500 (EST) From: Tom Lane To: Alvaro Herrera cc: Jeff Janes , "spam_eater@gmx.net" , "pgsql-bugs@postgresql.org" , Jaime Casanova Subject: Re: Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262" In-reply-to: <20130128200005.GB4050@alvh.no-ip.org> References: <11629.1355071394@sss.pgh.pa.us> <20121210041307.GA13156@alvh.no-ip.org> <20130125195716.GI5584@alvh.no-ip.org> <29842.1359162545@sss.pgh.pa.us> <20130128200005.GB4050@alvh.no-ip.org> Comments: In-reply-to Alvaro Herrera message dated "Mon, 28 Jan 2013 17:00:06 -0300" Date: Mon, 28 Jan 2013 15:04:59 -0500 Message-ID: <22507.1359403499@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Alvaro Herrera 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