Re: Firing triggers based on certain Insert conditions - Mailing list pgsql-general

From Harpreet Dhaliwal
Subject Re: Firing triggers based on certain Insert conditions
Date
Msg-id d86a77ef0701281029q5e8b0812sfc0b223edd16c94e@mail.gmail.com
Whole thread Raw
In response to Re: Firing triggers based on certain Insert conditions  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
I never said I don't want my trigger to do anything.
My subject line only made it pretty clear that I want to fire my trigger based on
certain conditions.
I know its kind of a silly feature request but you really can't help it
when you are working with stupid advisors :)
thanks for your reponse anyways.
Harpreet

 
On 1/28/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
"Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com > writes:
> I want this trigger to fire only when after Insert this field 'source'
> has value = 'from', otherwise trigger should not be fired at all.
> Just wondering if its really possible?

No, and it seems pretty silly as a feature request.  Why don't you just
put the test in the trigger, and have it do nothing when you don't want
it to do anything?

                       regards, tom lane

pgsql-general by date:

Previous
From: "Brendan Jurd"
Date:
Subject: Re: Firing triggers based on certain Insert conditions
Next
From: "Dave Page"
Date:
Subject: Re: Predicted lifespan of different PostgreSQL branches