Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 625B1F6332C for ; Thu, 19 Jul 2012 08:53:33 -0300 (ADT) Received: from mail-qc0-f175.google.com ([209.85.216.175]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SrpIS-0002AG-4V for pgsql-bugs@postgresql.org; Thu, 19 Jul 2012 11:53:32 +0000 Received: by qcad10 with SMTP id d10so1545459qca.34 for ; Thu, 19 Jul 2012 04:53:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :x-gm-message-state; bh=q1Kaj3WA8dBU2C7ukNO99yvNS8iMAiRrDqedD3A4kqI=; b=MVjsQRsZsRgQQf6z24alh3dPRrpKkS+vPSAs7aq2ETHVEbh/TchPDoN8iaWRhyM7Bq iPLyoG0nqmhmbWoal4pewE+PINdTm4pwnnHaSN1GzTlPPcbWwY0dZV0gfWXs11q9pQAl FMK7QrSTAtxX31c3lPvIyULMXS7qGos5bx7jQvmyL76pQ4isXldP3lsCqyrkgpvtE4iR I+w4kJyTtVUQ75oK3iCgQz0cGX1I4qU5Tdz1YNNtyhzKxZosndb3utioPzQqjkNb953f PgQUyzMmoAWc6myyFtzzPJhjZXqjecRMZbbOxP7fWwEWRqNtDvokq+vybqsP9cxMyRM5 /pkg== Received: by 10.229.135.83 with SMTP id m19mr694412qct.78.1342698798961; Thu, 19 Jul 2012 04:53:18 -0700 (PDT) Received: from tornado.leadboat.com (ip68-105-236-221.hr.hr.cox.net. [68.105.236.221]) by mx.google.com with ESMTPS id he6sm2814521qab.13.2012.07.19.04.53.17 (version=SSLv3 cipher=OTHER); Thu, 19 Jul 2012 04:53:18 -0700 (PDT) Date: Thu, 19 Jul 2012 07:53:15 -0400 From: Noah Misch To: Amit kapila Cc: "miroslav.sulc@fordfrog.com" , "pgsql-bugs@postgresql.org" Subject: Re: BUG #6712: PostgreSQL 9.2 beta2: alter table drop constraint does not work on inherited master table Message-ID: <20120719115315.GB28236@tornado.leadboat.com> References: <20120715212344.GA7475@tornado.leadboat.com> <6C0B27F7206C9E4CA54AE035729E9C382851E5AB@szxeml509-mbs> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6C0B27F7206C9E4CA54AE035729E9C382851E5AB@szxeml509-mbs> User-Agent: Mutt/1.5.18 (2008-05-17) X-Gm-Message-State: ALoCoQm6ER9E0LaC8+FNIlMXdDQtaL6crBugrmVfC1gJTfvrwDpvQtl2+GJ3kX3MgUfPYv9tid2I X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201207/168 X-Sequence-Number: 33644 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.