From: Amit Kapila <amit.kapila@huawei.com>
To: 'Noah Misch' <noah@leadboat.com>
Cc: miroslav.sulc@fordfrog.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6712: PostgreSQL 9.2 beta2: alter table drop constraint does not work on inherited master table
Date: Mon, 16 Jul 2012 16:49:46 +0530
Message-ID: <006001cd6344$e879ba30$b96d2e90$@kapila@huawei.com> (raw)
In-Reply-To: <20120715212344.GA7475@tornado.leadboat.com>
References: <20120715212344.GA7475@tornado.leadboat.com>
From: Noah Misch [mailto:noah@leadboat.com]
Sent: Monday, July 16, 2012 2:54 AM
> One can construct similar bugs around dropping foreign key and exclusion
> constraints. Though it may be irrelevant for command semantics,
additionally
> using connoinherit = 't' for contype = 't' (CONSTRAINT_TRIGGER) would
> more-accurately represent the nature of those constraints.
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.
Test
--------
I will create testcases similar to mentioned in bug report for
a. unique key case, same as in bug-report
b. foreign key case
c. exclusion constraint case
> 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.
With Regards,
Amit Kapila.
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: amit.kapila@huawei.com, noah@leadboat.com, 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: <006001cd6344$e879ba30$b96d2e90$@kapila@huawei.com>
References: <20120715212344.GA7475@tornado.leadboat.com> <006001cd6344$e879ba30$b96d2e90$@kapila@huawei.com>
* 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