Re: Multiple inheritance and ALTER TABLE issue

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Multiple inheritance and ALTER TABLE issue
Дата
Msg-id 619.1566162800@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Multiple inheritance and ALTER TABLE issue  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
I wrote:
> Manuel Rigger <rigger.manuel@gmail.com> writes:
>> Consider the test case below:

>> CREATE TABLE t0(c0 boolean);
>> CREATE TABLE t1(c0 boolean);
>> CREATE TABLE t2(c0 boolean) INHERITS(t0, t1);
>> ALTER TABLE t0 ALTER c0 TYPE TEXT;
>> UPDATE t1 SET c0 = TRUE; -- ERROR:  attribute "c0" of relation "t2"
>> does not match parent's type

>> Is this behavior intended?

> Hm.  I would say that the ALTER COLUMN TYPE operation should have thrown
> an error instead of trying to change the type of a multiply-inherited
> column.  As you say, no good can come of that.

I've pushed a fix along that line.  Thanks for the report!

            regards, tom lane



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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: BUG #15951: http://www.postgresql.sk/support/submitbug not working
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclaredidentifier 'FD_SETSIZE'