Re: DO INSTEAD and conditional rules

Поиск
Список
Период
Сортировка
От David Wheeler
Тема Re: DO INSTEAD and conditional rules
Дата
Msg-id b2fef70cdda15b007cbb4fd1598dcd48@kineticode.com
обсуждение исходный текст
Ответ на Re: DO INSTEAD and conditional rules  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Apr 25, 2005, at 11:00 PM, Tom Lane wrote:

> DO INSTEAD means that the *original* query will not execute; it does
> not suppress actions produced by other rules.

Ah!

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

Regards,

David



В списке pgsql-hackers по дате отправления:

Предыдущее
От: David Wheeler
Дата:
Сообщение: Re: DO INSTEAD and conditional rules
Следующее
От: Tom Lane
Дата:
Сообщение: Re: DO INSTEAD and conditional rules