Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 6610BE292B1 for ; Sat, 30 Jun 2012 07:58:29 -0300 (ADT) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SkvNi-0005jy-80 for pgsql-bugs@postgresql.org; Sat, 30 Jun 2012 10:58:28 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SkvNT-0006t8-RL for pgsql-bugs@postgresql.org; Sat, 30 Jun 2012 10:58:13 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1SkvNT-00066C-C4 for pgsql-bugs@postgresql.org; Sat, 30 Jun 2012 10:58:11 +0000 Date: Sat, 30 Jun 2012 10:58:11 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6712: PostgreSQL 9.2 beta2: alter table drop constraint does not work on inherited master table To: pgsql-bugs@postgresql.org From: miroslav.sulc@fordfrog.com X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/246 X-Sequence-Number: 33473 The following bug has been logged on the website: Bug reference: 6712 Logged by: Miroslav =C5=A0ulc Email address: miroslav.sulc@fordfrog.com PostgreSQL version: Unsupported/Unknown Operating system: Gentoo Linux Description: = here is the test case: test=3D# create table test_constraints (id int, val1 varchar, val2 int, uni= que (val1, val2)); NOTICE: CREATE TABLE / UNIQUE will create implicit index "test_constraints_val1_val2_key" for table "test_constraints" CREATE TABLE test=3D# create table test_constraints_inh () inherits (test_constraints); CREATE TABLE test=3D# alter table only test_constraints drop constraint test_constraints_val1_val2_key; ERROR: constraint "test_constraints_val1_val2_key" of relation "test_constraints_inh" does not exist postgresql tries to drop the constraint even from descendant table though "only" is specified.