Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 1D1CD7768F2 for ; Tue, 13 Mar 2012 14:12:18 -0300 (ADT) Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S7VGh-0005SG-NJ for pgsql-bugs@postgresql.org; Tue, 13 Mar 2012 17:12:17 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1S7VGS-0000cI-1Q; Tue, 13 Mar 2012 13:12:00 -0400 Date: Tue, 13 Mar 2012 13:12:00 -0400 From: Bruce Momjian To: Alvaro Herrera Cc: "rikard.pavelic" , Pg Bugs Subject: Re: BUG #6489: Alter table with composite type/table Message-ID: <20120313171200.GC9030@momjian.us> References: <1330526250-sup-4780@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1330526250-sup-4780@alvh.no-ip.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201203/101 X-Sequence-Number: 32662 On Wed, Feb 29, 2012 at 11:40:31AM -0300, Alvaro Herrera wrote: > > Excerpts from rikard.pavelic's message of sáb feb 25 10:23:18 -0300 2012: > > > But I would expect second alter to pass and enforcing not null and default > > when adding this column in table and not enforcing not null and default when > > adding into composite type for another table. > > > > Is this by design, oversight or a TODO? > > I think this is more a TODO than anything else. Last year we discussed > something similar to this -- twice, even; IIRC, one was buried somewhere > in the discussion about "variant" types, if you want to search the > pgsql-hackers archives. As far as I recall, discussion died mainly > because no one had the time and/or energy to pursue it, not because it > was impossible. Can you suggest some TODo text? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +