[prev in list] [next in list] [prev in thread] [next in thread]
List: postgresql-sql
Subject: Re: [SQL] Trigger triggered from a foreign key
From: Jasen Betts <jasen () xnet ! co ! nz>
Date: 2012-10-22 11:29:34
Message-ID: k63amu$lif$1 () reversiblemaps ! ath ! cx
[Download RAW message or body]
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
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic