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

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262"
Дата
Msg-id 20121210041307.GA13156@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262"  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262"  (Jaime Casanova <jaime@2ndquadrant.com>)
Re: Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262"  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-bugs
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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: init_htab causes SIGFPE (or worse) due to miscalculation for large nbuckets
Следующее
От: Jaime Casanova
Дата:
Сообщение: Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262"