Re: Trigger triggered from a foreign key - Mailing list pgsql-sql

From Jasen Betts
Subject Re: Trigger triggered from a foreign key
Date
Msg-id k63amu$lif$1@reversiblemaps.ath.cx
Whole thread Raw
In response to Trigger triggered from a foreign key  (Victor Sterpu <victor@caido.ro>)
List pgsql-sql
On 2012-10-19, Victor Sterpu <victor@caido.ro> wrote:
> I have this trigger that works fine. The trigger prevents the deletion 
> of the last record.
> But I want skip this trigger execution when the delete is done from a 
> external key.
> How can I do this?

perhaps you have to use a rule instead of a trigger?

-- 
⚂⚃ 100% natural




pgsql-sql by date:

Previous
From: Brice André
Date:
Subject: Partition database between users and implement disk quotas
Next
From: Mark Fenbers
Date:
Subject: complex query