Re: Multiple inheritance and ALTER TABLE issue - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Multiple inheritance and ALTER TABLE issue
Date
Msg-id 619.1566162800@sss.pgh.pa.us
Whole thread Raw
In response to Re: Multiple inheritance and ALTER TABLE issue  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: BUG #15951: http://www.postgresql.sk/support/submitbug not working
Next
From: Alvaro Herrera
Date:
Subject: Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclaredidentifier 'FD_SETSIZE'