Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 072326DF103 for ; Thu, 19 Jul 2012 23:58:28 -0300 (ADT) Received: from szxga01-in.huawei.com ([119.145.14.64]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ss3Q9-0000qA-SB for pgsql-bugs@postgresql.org; Fri, 20 Jul 2012 02:58:27 +0000 Received: from 172.24.2.119 (EHLO szxeml212-edg.china.huawei.com) ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.1.9-GA FastPath queued) with ESMTP id ALP47141; Fri, 20 Jul 2012 10:57:41 +0800 (CST) Received: from SZXEML414-HUB.china.huawei.com (10.82.67.153) by szxeml212-edg.china.huawei.com (172.24.2.181) with Microsoft SMTP Server (TLS) id 14.1.323.3; Fri, 20 Jul 2012 10:57:11 +0800 Received: from blrprnc09ns (10.18.96.98) by SZXEML414-HUB.china.huawei.com (10.82.67.153) with Microsoft SMTP Server id 14.1.323.3; Fri, 20 Jul 2012 10:57:05 +0800 From: Amit Kapila To: "'Noah Misch'" CC: , References: <20120715212344.GA7475@tornado.leadboat.com> <6C0B27F7206C9E4CA54AE035729E9C382851E5AB@szxeml509-mbs> <20120719115315.GB28236@tornado.leadboat.com> In-Reply-To: <20120719115315.GB28236@tornado.leadboat.com> Subject: Re: BUG #6712: PostgreSQL 9.2 beta2: alter table drop constraint does not work on inherited master table Date: Fri, 20 Jul 2012 08:27:04 +0530 Message-ID: <000f01cd6623$582cc530$08864f90$@kapila@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac1lpRr2q3FqJ8zDQLaHIEvt7rAdGgAfhKMA Content-Language: en-us X-Originating-IP: [10.18.96.98] X-CFilter-Loop: Reflected X-Pg-Spam-Score: -3.2 (---) X-Archive-Number: 201207/173 X-Sequence-Number: 33649 From: Noah Misch [mailto:noah@leadboat.com] Sent: Thursday, July 19, 2012 5:23 PM On Tue, Jul 17, 2012 at 08:59:50AM +0000, Amit kapila wrote: >> Patch is attached with this mail. > Thanks. This patch is ready for committer. >> +-- Test non-inheritable indices [UNIQUE, EXCLUDE] contraints >> +CREATE TABLE test_constraints (id int, val1 varchar, val2 int, UNIQUE(val1, val2)); >> +CREATE TABLE test_constraints_inh () INHERITS (test_constraints); >> +\d+ test_constraints >> +ALTER TABLE ONLY test_constraints DROP CONSTRAINT test_constraints_val1_val2_key; >> +\d+ test_constraints >> +\d+ test_constraints_inh > To keep output terse, I would have omitted "\d" commands or retained only the > post-DROP "\d+ test_constraints". Granted, that's subjective. Thanks for the review of patch. With Regards, Amit Kapila.