Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ThjyR-0005TT-0k for pgsql-bugs@arkaria.postgresql.org; Sun, 09 Dec 2012 16:43:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1ThjyP-0003qK-Iu for pgsql-bugs@arkaria.postgresql.org; Sun, 09 Dec 2012 16:43:25 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ThjyO-0003qE-MP for pgsql-bugs@postgresql.org; Sun, 09 Dec 2012 16:43:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ThjyJ-0003bI-Kz for pgsql-bugs@postgresql.org; Sun, 09 Dec 2012 16:43:23 +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 qB9GhE2W011630; Sun, 9 Dec 2012 11:43:14 -0500 (EST) From: Tom Lane To: spam_eater@gmx.net cc: pgsql-bugs@postgresql.org, Alvaro Herrera Subject: Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262" In-reply-to: References: Comments: In-reply-to spam_eater@gmx.net message dated "Sun, 09 Dec 2012 14:12:22 +0000" Date: Sun, 09 Dec 2012 11:43:14 -0500 Message-ID: <11629.1355071394@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 spam_eater@gmx.net writes: > postgres=# create user testuser with password 'secret'; > CREATE ROLE > postgres=# create database testdb owner testuser; > CREATE DATABASE > testdb=> drop owned by testuser; > ERROR: unrecognized object class: 1262 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? 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