Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T6Bje-0001oK-Hg for pgsql-bugs@postgresql.org; Tue, 28 Aug 2012 02:40:58 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T6Bjc-0008VO-Oo for pgsql-bugs@postgresql.org; Tue, 28 Aug 2012 02:40:57 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1T6BjZ-0003Jz-MW; Mon, 27 Aug 2012 22:40:53 -0400 Date: Mon, 27 Aug 2012 22:40:53 -0400 From: Bruce Momjian To: Rikard Pavelic Cc: Merlin Moncure , pgsql-bugs@postgresql.org Subject: Re: BUG #6489: Alter table with composite type/table Message-ID: <20120828024053.GH6786@momjian.us> References: <4F60E122.3080409@zg.htnet.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F60E122.3080409@zg.htnet.hr> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.0 (-) X-Archive-Number: 201208/210 X-Sequence-Number: 33934 On Wed, Mar 14, 2012 at 07:19:14PM +0100, Rikard Pavelic wrote: > 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. Should we add this TODO? I am confused by the text above though. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +