Skip site navigation (1) Skip section navigation (2)

Re: Problem identifying constraints which should not be inherited

From: NikhilS <nikkhils(at)gmail(dot)com>
To: "Bruce Momjian" <bruce(at)momjian(dot)us>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Chris Fischer" <Chris(dot)Fischer(at)channeladvisor(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Problem identifying constraints which should not be inherited
Date: 2008-03-19 07:51:48
Message-ID: d3c4af540803190051u6b0532b4u31104838116f5a47@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-hackers
Hi,

On Fri, Mar 7, 2008 at 6:37 AM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:

>
> Added to TODO:
>
> >       o Require all CHECK constraints to be inherited
> >
> >         http://archives.postgresql.org/pgsql-bugs/2007-04/msg00026.php
>
>
PFA, a small patch attached which should fix this. I have made relevant
changes in the relevant regression files too.

I was wondering though if there are other locations where we might need to
add checks to ensure that ALTER TABLE ONLY parentrel operations are ok? I
did see checks for this in some other operations like ADD COLUMN already in
place too.

Regards,
Nikhils
-- 
EnterpriseDB http://www.enterprisedb.com

Attachment: add_constraint_inheritance_bug.patch
Description: text/x-patch (5.8 KB)

In response to

Responses

pgsql-hackers by date

Next:From: Pavel StehuleDate: 2008-03-19 08:03:20
Subject: regress test problems
Previous:From: Tom LaneDate: 2008-03-19 07:06:52
Subject: Re: fast count(*) through statistics collector

pgsql-bugs by date

Next:From: Heikki LinnakangasDate: 2008-03-19 10:21:41
Subject: Re: 8.3 can't convert cyrillic text from 'iso-8859-5' to other cyrillic 8-bit encoding
Previous:From: kusumDate: 2008-03-19 05:33:45
Subject: BUG #4046: Error on connection

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group