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

From Harpreet Dhaliwal
Subject Firing triggers based on certain Insert conditions
Date
Msg-id d86a77ef0701281012r74a2a446i8a529119026fa046@mail.gmail.com
Whole thread Raw
Responses Re: Firing triggers based on certain Insert conditions  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Firing triggers based on certain Insert conditions  ("Brendan Jurd" <direvus@gmail.com>)
List pgsql-general
Hi
I have a table in which i have a field named 'source'
A trigger is written on this table.
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?
 
Thanks in advance.
Harpreet

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Password issue revisited
Next
From: "Anton Melser"
Date:
Subject: Re: Questions about horizontal partitioning