Re: DO INSTEAD and conditional rules - Mailing list pgsql-hackers

From Zeugswetter Andreas DAZ SD
Subject Re: DO INSTEAD and conditional rules
Date
Msg-id E1539E0ED7043848906A8FF995BDA5790C514D@m0143.s-mxs.net
Whole thread Raw
In response to DO INSTEAD and conditional rules  (Neil Conway <neilc@samurai.com>)
List pgsql-hackers
> > If we did not define
> > it that way, I think your example would have to error out --- how
> > would you choose which INSTEAD rule wins?
>
> The documentation says that they evaluate in alphabetical order by
> name. So I would expect that the first one to have its WHERE statement
> evaluate to true would short-circuit the execution of the remaining
> rules.

Why not simply write non overlapping WHERE statements ?
Imho not doing them all would be very counter intuitive.

Andreas


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [pgsql-advocacy] Increased company involvement
Next
From: "Joshua D. Drake"
Date:
Subject: Re: [pgsql-advocacy] Increased company involvement