Re: ON DELETE CASCADE question - Mailing list pgsql-sql

From Jan Wieck
Subject Re: ON DELETE CASCADE question
Date
Msg-id 3D0A247F.EADC659D@Yahoo.com
Whole thread Raw
In response to Re: ON DELETE CASCADE question  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-sql
Josh Berkus wrote:
> 
> Wei,
> 
> > Does ON DELETE CASCADE attribute you specify in CREATE TABLE
> > statement
> > actually create triggers for every foreign key it refers to?
> >
> 
> Yes.  Two triggers for each key, I think.
   Three, one for INSERT OR UPDATE on the FK table, one   for UPDATE on the PK table and one for DELETE on PK.


Jan

-- 

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #


pgsql-sql by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: ON DELETE CASCADE question
Next
From: juerg.rietmann@pup.ch
Date:
Subject: function not running after upgrade from 7.03 to 7.2