| From: | "surabhi(dot)ahuja" <surabhi(dot)ahuja(at)iiitb(dot)ac(dot)in> |
|---|---|
| To: | <pgsql-general(at)postgresql(dot)org> |
| Subject: | regarding triggers |
| Date: | 2006-01-10 13:10:58 |
| Message-ID: | 967CFC4343BF2A4DAFACD026D33DC85118ECA9@jal.iiitb.ac.in |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
is there an advantage of using a trigger? when the same job can be performed by a stored procedure?
one more question is as follows:
suppose i have a table x, with a primary attribute 'a'
and i have a table y, with the primary attribute 'b', and a foreign key 'a'.
suppose i say delete from x where a = '1',
it means that not only the rows from x get deleted but also rows from y get deleted.
now i have a trigger which is written for deletes taking place from the table y.
however if i say delete from x where a = '1',
will the trigger (mentioned above) still be called? (because delete are also taking place from the table y)
thanks,
regards
Surabhi
| From | Date | Subject | |
|---|---|---|---|
| Next Message | pgsql.waldvogel | 2006-01-10 13:36:09 | Connection specific information - Temporary table used in Sybase to store information |
| Previous Message | Robert Greimel | 2006-01-10 11:43:16 | Re: function overloading |