Re: Broken Constraint Checking in Functions

From: Curt Sampson <cjs(at)cynic(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Akira Matsuo <akira(at)vanten(dot)com>, Mark Van Wouw <mark(at)vanten(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Broken Constraint Checking in Functions
Date: 2003-10-24 04:29:59
Message-ID: Pine.NEB.4.58.0310241325150.444@angelic-vtfw.cvpn.cynic.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 24 Oct 2003, Bruce Momjian wrote:

> I am not sure we should add something to the SET CONSTRAINT page on
> this. Our current behavior is clearly a bug, and for that reason
> belongs more on the TODO list, where it already is:

Had it been on the SET CONSTRAINT page, it would have saved me several
hours of debugging. I found the entry only after tracking down the
problem and creating a simple test case to demonstrate it.

We document other bugs on this page, e.g.:

Currently, only foreign key constraints are affected by this
setting. Check and unique constraints are always effectively
initially immediate not deferrable.

So why not document this one as well?

> * Have AFTER triggers execute after the appropriate SQL statement in a
> function, not at the end of the function
>
> The big question is whether this entry is clear enough for people to
> understand it could bite them.

My big question is, should we expect that anybody reading the
documentation also has to go through the TODO list to see if there are
bugs on the list not mentioned in the manual?

cjs
--
Curt Sampson <cjs(at)cynic(dot)net> +81 90 7737 2974 http://www.NetBSD.org
Don't you know, in this new Dark Age, we're all light. --XTC

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message phd9110 2003-10-24 04:33:57 rte in set_plan_rel_pathlist()
Previous Message Bruce Momjian 2003-10-24 04:26:37 Re: Foreign Key bug -- 7.4b4