Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Thuk7-00086p-Jv for pgsql-bugs@arkaria.postgresql.org; Mon, 10 Dec 2012 04:13:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Thuk6-0007cG-OM for pgsql-bugs@arkaria.postgresql.org; Mon, 10 Dec 2012 04:13:22 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Thuk5-0007cA-Sq for pgsql-bugs@postgresql.org; Mon, 10 Dec 2012 04:13:21 +0000 Received: from smtprelay0084.b.hostedemail.com ([64.98.42.84] helo=smtprelay.b.hostedemail.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Thuk1-0000PI-CW for pgsql-bugs@postgresql.org; Mon, 10 Dec 2012 04:13:20 +0000 Received: from filter.hostedemail.com (b-bigip1 [10.5.19.254]) by smtprelay06.b.hostedemail.com (Postfix) with SMTP id CC3F2D9B4B; Mon, 10 Dec 2012 04:13:15 +0000 (UTC) X-Panda: scanned! X-Session-Marker: 616C76686572726540616C76682E6E6F2D69702E6F7267 X-Filterd-Recvd-Size: 1770 Received: from perhan.alvh.no-ip.org (unknown [190.95.4.9]) (Authenticated sender: alvherre@alvh.no-ip.org) by omf06.b.hostedemail.com (Postfix) with ESMTPA; Mon, 10 Dec 2012 04:13:14 +0000 (UTC) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 324A76E226; Mon, 10 Dec 2012 01:13:08 -0300 (CLST) Date: Mon, 10 Dec 2012 01:13:07 -0300 From: Alvaro Herrera To: Tom Lane Cc: spam_eater@gmx.net, pgsql-bugs@postgresql.org Subject: Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262" Message-ID: <20121210041307.GA13156@alvh.no-ip.org> References: <11629.1355071394@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <11629.1355071394@sss.pgh.pa.us> User-Agent: Mutt/1.5.21 (2010-09-15) Content-Transfer-Encoding: quoted-printable 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 Tom Lane wrote: >=20 > spam_eater@gmx.net writes: > > postgres=3D# create user testuser with password 'secret'; > > CREATE ROLE > > postgres=3D# create database testdb owner testuser; > > CREATE DATABASE > > testdb=3D> drop owned by testuser; > > ERROR: unrecognized object class: 1262 >=20 > I can reproduce this in all versions back to 8.3. In 8.2, the role's > ownership of the database is silently ignored, which I think was the > design intention. I doubt that we want DROP OWNED dropping whole > databases. At most maybe we should raise a NOTICE? I broke it recently: fe3b5eb08 Got a one day old guy at home, can't look at this for at least a week, sorry. --=20 =C1lvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs