From: | "surabhi(dot)ahuja" <surabhi(dot)ahuja(at)iiitb(dot)ac(dot)in> |
---|---|
To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "John McCawley" <nospam(at)hardgeus(dot)com> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: regarding triggers |
Date: | 2006-01-12 12:06:07 |
Message-ID: | 967CFC4343BF2A4DAFACD026D33DC85118ECAB@jal.iiitb.ac.in |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
but if i have "on delete cascade" constraint,
in that case if i have a trigger which is fired in case delet happens on the table y.
i have a table x, and table y has a foreign key with "on delete cascade" constraint,
now i delete a row from x, will the trigger still be called?
-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Tue 1/10/2006 9:58 PM
To: John McCawley
Cc: surabhi.ahuja; pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] regarding triggers
***********************
Your mail has been scanned by iiitb VirusWall.
***********-***********
John McCawley <nospam(at)hardgeus(dot)com> writes:
> Foreign keys do not cascade deletions.
By default, no, but there is the CASCADE option ...
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Jim Buttafuoco | 2006-01-12 13:31:58 | Re: Returning SQL statement |
Previous Message | Alban Hertroys | 2006-01-12 11:23:36 | Re: sql (Stored procedure) design question |