From: Rikard Pavelic <rikard.pavelic@zg.htnet.hr>
To: Merlin Moncure <mmoncure@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6489: Alter table with composite type/table
Date: Wed, 14 Mar 2012 19:19:14 +0100
Message-ID: <4F60E122.3080409@zg.htnet.hr> (raw)
In-Reply-To: <CAHyXU0z=xkwWaOv7eHiY_21PbyCnuHCjRTtBW+aqyzFD40Xckw@mail.gmail.com>
References: <E1S1Han-0001M2-WB@wrigleys.postgresql.org>
<CAHyXU0z=xkwWaOv7eHiY_21PbyCnuHCjRTtBW+aqyzFD40Xckw@mail.gmail.com>
On 13.3.2012. 20:49, Merlin Moncure wrote:
> I personally think it's an oversight. This was just discussed a
> couple of days ago here:
> http://postgresql.1045698.n5.nabble.com/Altering-a-table-with-a-rowtype-column-td5544844.html
>
> The server is blocking the alter-not-null-with-default because it's
> assuming that the default should be applied to dependent (foreign)
> tables implementing the type as a field. I think this assumption is
> totally bogus because composite types defaults get applied to the
> type, not to member fields and therefore a default has no meaning in
> that context. I think the TODO should read to relax the check
> essentially.
>
> merlin
>
I agree.
TODO: alter table-type columns according to attribute type rules.
Enforce only TYPE features and ignore TABLE features when altering composite table-types.
While I'm making up TODO's, my favorite one: support recursive types.
Regards,
Rikard
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: rikard.pavelic@zg.htnet.hr, mmoncure@gmail.com
Subject: Re: BUG #6489: Alter table with composite type/table
In-Reply-To: <4F60E122.3080409@zg.htnet.hr>
References: <E1S1Han-0001M2-WB@wrigleys.postgresql.org> <CAHyXU0z=xkwWaOv7eHiY_21PbyCnuHCjRTtBW+aqyzFD40Xckw@mail.gmail.com> <4F60E122.3080409@zg.htnet.hr>
* 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