Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id D5B521A3BCB0 for ; Wed, 29 Feb 2012 10:40:51 -0400 (AST) Received: from 30.55.colo.spiretech.net ([69.168.55.30] helo=lists.commandprompt.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S2ki1-0005Hj-NK for pgsql-bugs@postgresql.org; Wed, 29 Feb 2012 14:40:50 +0000 Received: from perhan.alvh.no-ip.org (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id 8048C254; Wed, 29 Feb 2012 06:41:16 -0800 (PST) Received: from perhan.alvh.no-ip.org ([190.95.9.83] helo=perhan.alvh.no-ip.org) by assp.commandprompt.com with ESMTPS(AES256-SHA) (2.1.1); 29 Feb 2012 06:41:14 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 2376C6E5FE; Wed, 29 Feb 2012 11:40:31 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: Pg Bugs Subject: Re: BUG #6489: Alter table with composite type/table From: Alvaro Herrera To: rikard.pavelic In-reply-to: References: Date: Wed, 29 Feb 2012 11:40:31 -0300 Message-Id: <1330526250-sup-4780@alvh.no-ip.org> User-Agent: Sup/git X-Assp-Version: 2.1.1(11364) on assp.commandprompt.com X-Assp-Client-TLS: yes X-Assp-ID: assp.commandprompt.com m1-26476-10319 X-Assp-Envelope-From: alvherre@alvh.no-ip.org X-Assp-Intended-For: pgsql-bugs@postgresql.org X-Assp-Original-Subject: Re: [BUGS] BUG #6489: Alter table with composite type/table Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/208 X-Sequence-Number: 32551 Excerpts from rikard.pavelic's message of s=C3=A1b feb 25 10:23:18 -0300 = 2012: > But I would expect second alter to pass and enforcing not null and defa= ult > when adding this column in table and not enforcing not null and default= when > adding into composite type for another table. >=20 > 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. --=20 =C3=81lvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support