Re: Broken Constraint Checking in Functions - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Broken Constraint Checking in Functions
Date
Msg-id 200310240439.h9O4dTn07932@candle.pha.pa.us
Whole thread Raw
In response to Re: Broken Constraint Checking in Functions  (Curt Sampson <cjs@cynic.net>)
Responses Re: Broken Constraint Checking in Functions
List pgsql-hackers
Curt Sampson wrote:
> 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?

Does it belong on the SET CONSTRAINT page, the CREATE TABLE page, or the
CREATE FUNCTION page?

> >     * 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?

This is more of a "this is a clear bug" rather than an judgement call or
something.  I can add it, but we do expect most people to read the TODO
list because it shows our shortcomings.  Can I get anyone else to
recommend adding it to the CREATE CONSTRAINT manual page?

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: "phd9110"
Date:
Subject: rte in set_plan_rel_pathlist()
Next
From: Curt Sampson
Date:
Subject: Re: Broken Constraint Checking in Functions