Re: Trigger with WHEN clause (WIP) - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: Trigger with WHEN clause (WIP)
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: Trigger with WHEN clause (WIP)  (Tom Lane <[email protected]>)
Responses Re: Trigger with WHEN clause (WIP)
List pgsql-hackers
2009/10/15 Tom Lane <[email protected]>:
> Itagaki Takahiro <[email protected]> writes:
>> I think there is a benefit to provide WHEN cluase at least
>> for compatibility with other DBMSs, even through we can move
>> the expressions into the body of trigger functions.
>
> This seems to me to be a lot of code to accomplish nothing useful.
> It will always be the case that any nontrivial logic has to be done
> inside the trigger.  And the compatibility argument is entirely
> pointless given the lack of compatibility in the trigger function
> itself.
>
> -1
>

I disagree. When I analysed speed of some operations, I found some
unwanted trigger calls should to slow down applications. I am for any
method, that could to decrease trigger calls.

Regards
Pavel Stehule


>                        regards, tom lane
>
> --
> Sent via pgsql-hackers mailing list ([email protected])
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>


pgsql-hackers by date:

Previous
From: "Albe Laurenz"
Date:
Subject: Re: Rejecting weak passwords
Next
From: Robert Haas
Date:
Subject: Re: EXPLAIN BUFFERS