Unix Technical Forum

Re: DO INSTEAD and conditional rules

This is a discussion on Re: DO INSTEAD and conditional rules within the pgsql Hackers forums, part of the PostgreSQL category; --> > > If we did not define > > it that way, I think your example would have to ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 04:36 AM
Zeugswetter Andreas DAZ SD
 
Posts: n/a
Default Re: DO INSTEAD and conditional rules


> > 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

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:48 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com