Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: spam_eater(at)gmx(dot)net
Cc: pgsql-bugs(at)postgresql(dot)org, Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Subject: Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262"
Date: 2012-12-09 16:43:14
Message-ID: 11629.1355071394@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

spam_eater(at)gmx(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Thomas Kellerer 2012-12-09 17:04:31 Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262"
Previous Message spam_eater 2012-12-09 14:12:22 BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262"