Re: Getting track of foreign keys

From: tmp <skrald(at)amossen(dot)dk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Getting track of foreign keys
Date: 2004-09-16 11:54:43
Message-ID: pan.2004.09.16.11.54.42.435792@amossen.dk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> * I have tried to create a trigger, that ensures the above. But this is,
> for some reason, not getting fired if the deletion of a slave row is a
> result of a foreign key cascading effect. So this is only of limited use.

I solved it:
The trigger should be fired BEFORE deletions and not after. Ofcourse.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Christopher Browne 2004-09-16 12:32:29 Re: Postgresql <--> webservices?
Previous Message Philippe Lang 2004-09-16 11:36:11 Postgresql <--> webservices?