From: Tom Lane <tgl@sss.pgh.pa.us>
To: Manuel Rigger <rigger.manuel@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: Multiple inheritance and ALTER TABLE issue
Date: Sun, 18 Aug 2019 17:13:20 -0400
Message-ID: <619.1566162800@sss.pgh.pa.us> (raw)
In-Reply-To: <31561.1564246401@sss.pgh.pa.us>
References: <CA+u7OA4qogDv9rz1HAb-ADxttXYPqQdUdPY_yd4kCzywNxRQXA@mail.gmail.com>
<31561.1564246401@sss.pgh.pa.us>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, rigger.manuel@gmail.com
Subject: Re: Multiple inheritance and ALTER TABLE issue
In-Reply-To: <619.1566162800@sss.pgh.pa.us>
References: <CA+u7OA4qogDv9rz1HAb-ADxttXYPqQdUdPY_yd4kCzywNxRQXA@mail.gmail.com> <31561.1564246401@sss.pgh.pa.us> <619.1566162800@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox