Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id BCA4355C5A4 for ; Mon, 16 Jul 2012 12:12:18 -0300 (ADT) Received: from mail-yx0-f174.google.com ([209.85.213.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sqmy9-000209-8u for pgsql-bugs@postgresql.org; Mon, 16 Jul 2012 15:12:18 +0000 Received: by yenl2 with SMTP id l2so5077012yen.19 for ; Mon, 16 Jul 2012 08:12:04 -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=MPNkUP/LF/AlVeoHqYZxhucIMPreTUu0gTQiNniA1Rs=; b=gRqQyrXboi5gWJMgWCQrIgE3EYZ+CSWVjuvesm6wzoOGD2ymayKBOqhorRYjE+MDo/ ufEVX+G7vCvSM6ZRcpZ/e8VsvV2fKvSQkCQp2nAfeElmfW1MBe76X0mIaC9yS9kDELav OuHXb0tkjpsTdp+Db0shMkIo3hotT1DK35qCUfSSYmtUVFvLTaK2j5EaNwV3SXRRx+6S IJx8YtpcvpcPhxgO9D4rndoadJldHstvsulTIwR53bo8xxRWVXar2nFAquzO3nURJYlt JiYfcmbn9lwfFl05Xq1YANkXCRc6Eveb9U1liH6Lv4yedmf1OFXl0WzTgLsLrXQsuIq5 vlTQ== Received: by 10.236.77.39 with SMTP id c27mr9450902yhe.99.1342451524648; Mon, 16 Jul 2012 08:12:04 -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 c70sm29494276yhk.12.2012.07.16.08.12.03 (version=SSLv3 cipher=OTHER); Mon, 16 Jul 2012 08:12:03 -0700 (PDT) Date: Mon, 16 Jul 2012 11:12:01 -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: <20120716151201.GC7475@tornado.leadboat.com> References: <20120715212344.GA7475@tornado.leadboat.com> <5003f940.49dc440a.671f.3d72SMTPIN_ADDED@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5003f940.49dc440a.671f.3d72SMTPIN_ADDED@mx.google.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Gm-Message-State: ALoCoQmk9y+8LYgYzFP5tDAQYSL8dMyG9zQjbqyJBvb9jJkmxCi6vkiaHiKL6zjj316BJBatF8// X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201207/123 X-Sequence-Number: 33599 On Mon, Jul 16, 2012 at 04:49:46PM +0530, Amit Kapila wrote: > Code Changes > ---------------- > I will make changes in following functions to ensure that connoinherit > should be appropriately set(pass the value as true). > a. index_constraint_create() > b. ATAddForeignKeyConstraint() > c. CreateTrigger(). > > Other places I have checked seems to be fine. Looks right. > Test > -------- > I will create testcases similar to mentioned in bug report for > a. unique key case, same as in bug-report Good. > b. foreign key case > c. exclusion constraint case Test coverage for those is optional. > > Care to prepare a patch with a test case addition? > Let me know if above is sufficient or shall I include anything more in > patch. I can't think of anything else. As a side question for the list, should we fix this differently in 9.2 to avoid forcing an initdb for the next beta? Perhaps have ATExecDropConstraint() only respect connoinherit for CONSTRAINT_CHECK?