Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Sql > Re: apparent RI...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 7 Topic 3383 of 3631
Post > Topic >>

Re: apparent RI bug

by sszabo@[EMAIL PROTECTED] (Stephan Szabo) Apr 3, 2008 at 01:35 PM

On Thu, 3 Apr 2008, chester c young wrote:

> --- Stephan Szabo <sszabo@[EMAIL PROTECTED]
> wrote:
>
> > Is it possible you ever had a before delete trigger that just did a
> > return
> > NULL rather than raising an exception? IIRC, explicitly telling the
> > system to ignore the delete will work on the referential actions.
>
> yes, it is possible, for example, a function without a body or without
> a "return old".
>
> are you saying this would override the RI constraint?

If it returned something that would have prevented the delete without an
error, yes.

> if so, is this by design?

It's basically an ongoing question (without concensus AFAIK) about whether
a rule or trigger should be allowed to stop the referential action and
what should happen if it does.

-- 
Sent via pgsql-sql mailing list (pgsql-sql@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
 




 7 Posts in Topic:
apparent RI bug
chestercyoung@[EMAIL PROT  2008-04-02 10:42:36 
Re: apparent RI bug
sszabo@[EMAIL PROTECTED]   2008-04-03 10:31:19 
Re: apparent RI bug
chestercyoung@[EMAIL PROT  2008-04-03 11:13:13 
Re: apparent RI bug
sszabo@[EMAIL PROTECTED]   2008-04-03 11:33:05 
Re: apparent RI bug
chestercyoung@[EMAIL PROT  2008-04-03 13:16:42 
Re: apparent RI bug
sszabo@[EMAIL PROTECTED]   2008-04-03 13:35:15 
Re: apparent RI bug
chestercyoung@[EMAIL PROT  2008-04-03 18:53:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Aug 21 23:01:16 CDT 2008.