From: miroslav.sulc@fordfrog.com
To: pgsql-bugs@postgresql.org
Subject: BUG #6712: PostgreSQL 9.2 beta2: alter table drop constraint does not work on inherited master table
Date: Sat, 30 Jun 2012 10:58:11 +0000
Message-ID: <E1SkvNT-00066C-C4@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 6712
Logged by: Miroslav Ć ulc
Email address: miroslav.sulc@fordfrog.com
PostgreSQL version: Unsupported/Unknown
Operating system: Gentoo Linux
Description:
here is the test case:
test=# create table test_constraints (id int, val1 varchar, val2 int, unique
(val1, val2));
NOTICE: CREATE TABLE / UNIQUE will create implicit index
"test_constraints_val1_val2_key" for table "test_constraints"
CREATE TABLE
test=# create table test_constraints_inh () inherits (test_constraints);
CREATE TABLE
test=# 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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: miroslav.sulc@fordfrog.com
Subject: Re: BUG #6712: PostgreSQL 9.2 beta2: alter table drop constraint does not work on inherited master table
In-Reply-To: <E1SkvNT-00066C-C4@wrigleys.postgresql.org>
References: <E1SkvNT-00066C-C4@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox