Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TyuGi-00041E-PG for pgsql-bugs@arkaria.postgresql.org; Sat, 26 Jan 2013 01:09:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TyuGh-0005xv-S7 for pgsql-bugs@arkaria.postgresql.org; Sat, 26 Jan 2013 01:09:15 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TyuGg-0005xn-0B for pgsql-bugs@postgresql.org; Sat, 26 Jan 2013 01:09:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TyuGc-0001jp-PG for pgsql-bugs@postgresql.org; Sat, 26 Jan 2013 01:09:13 +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 r0Q195Ko029843; Fri, 25 Jan 2013 20:09:05 -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: <20130125195716.GI5584@alvh.no-ip.org> References: <11629.1355071394@sss.pgh.pa.us> <20121210041307.GA13156@alvh.no-ip.org> <20130125195716.GI5584@alvh.no-ip.org> Comments: In-reply-to Alvaro Herrera message dated "Fri, 25 Jan 2013 16:57:16 -0300" Date: Fri, 25 Jan 2013 20:09:05 -0500 Message-ID: <29842.1359162545@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 disagree with this assessment, and propose the attached patch instead. +1 for this approach in HEAD ... > This is the patch for the master branch; I have not tried to backpatch > it yet. Conflicts are expected due to the refactoring of ALTER commands > by KaiGai. ... but I'm worried that you'd need a substantially larger patch in back branches, and accordingly I'm not sure this is what to do in the back branches. Without that refactoring, you might need to duplicate more code, so it might be safer to just revert as Jeff suggested. The documentation also needs more work than what you suggest in your followup. The command reference pages should explicitly say that they operate on both objects in the current database and shared objects. Explicitly defining shared objects as databases and tablespaces wouldn't hurt any. It also strikes me that where you suggest "Because REASSIGN OWNED does not affect objects in other databases ...", it might be clearer to say "Because REASSIGN OWNED does not affect objects within other databases ...", which makes the idea of containment a little stronger. 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