pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: Amit Kapila <amit.kapila@huawei.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 11:12:01 -0400
Message-ID: <20120716151201.GC7475@tornado.leadboat.com> (raw)
In-Reply-To: <5003f940.49dc440a.671f.3d72SMTPIN_ADDED@mx.google.com>
References: <20120715212344.GA7475@tornado.leadboat.com>
	<5003f940.49dc440a.671f.3d72SMTPIN_ADDED@mx.google.com>

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?



view thread (14+ messages)  latest in thread

Message-ID: <20120716151201.GC7475@tornado.leadboat.com>
Permalink:  ../20120716151201.GC7475@tornado.leadboat.com/
Also on:    postgresql.org/message-id/20120716151201.GC7475@tornado.leadboat.com

 · 

reply

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: noah@leadboat.com, amit.kapila@huawei.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: <20120716151201.GC7475@tornado.leadboat.com>
  References: <20120715212344.GA7475@tornado.leadboat.com> <5003f940.49dc440a.671f.3d72SMTPIN_ADDED@mx.google.com> <20120716151201.GC7475@tornado.leadboat.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