Search Postgresql Archives

Re: Firing triggers based on certain Insert conditions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx> wrote:
"Harpreet Dhaliwal" <harpreet.dhaliwal01@xxxxxxxxx > 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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux