Re: [GENERAL] conditional rules VS 1 unconditional rule with multiple commands?

2010-05-27 Thread Alban Hertroys
On 27 May 2010, at 12:36, Davor J. wrote: > I just wonder whether the two are equivalent from user perspective: As far > as I see, you can always rewrite a multi-command rule as a conditional rule > and vice versa. Further more, Postgres seems to execute all the conditional > rules, just as if

[GENERAL] conditional rules VS 1 unconditional rule with multiple commands?

2010-05-27 Thread Davor J.
I just wonder whether the two are equivalent from user perspective: As far as I see, you can always rewrite a multi-command rule as a conditional rule and vice versa. Further more, Postgres seems to execute all the conditional rules, just as if it would execute all the commands in the one uncond