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

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема Re: Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262"
Дата
Msg-id CAMkU=1xbchvew5g2qqRjFy_hEkYFFgGXQE3cjEcV3eWCCsO3eQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262"  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262"
Re: Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262"
Список pgsql-bugs
On Sunday, December 9, 2012, Alvaro Herrera wrote:

> Tom Lane wrote:
> >
> > spam_eater@gmx.net <javascript:;> 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?
>
> I broke it recently: fe3b5eb08
>
> Got a one day old guy at home, can't look at this for at least a
> week, sorry.
>

Since back-branch releases are coming up, I think fe3b5eb08 and it's
analogues in all branches should be reverted.

The issue it was intended to solve was not really a bug in the first place,
and this patch didn't solve it anyway. But it introduced new behavior (into
all supported branches) which certainly is a bug.


I don't think the original issue it was intended to solve can be solved
easily, either. It would be easy to fix the code to add table-spaces to the
list of things to be reassigned, but the code that does the actual
reassignment can't deal with table-spaces anyway.



Cheers,


Jeff

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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: BUG #7814: Rotation of the log is not carried out.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #7814: Rotation of the log is not carried out.