Re: DO INSTEAD and conditional rules

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: DO INSTEAD and conditional rules
Дата
Msg-id 28483.1114495252@sss.pgh.pa.us
обсуждение исходный текст
Ответ на DO INSTEAD and conditional rules  (Neil Conway <neilc@samurai.com>)
Ответы Re: DO INSTEAD and conditional rules  (Neil Conway <neilc@samurai.com>)
Re: DO INSTEAD and conditional rules  (David Wheeler <david@kineticode.com>)
Список pgsql-hackers
Neil Conway <neilc@samurai.com> writes:
> Note that although both rules are DO INSTEAD, they both get fired for 
> the insertion.

DO INSTEAD means that the *original* query will not execute; it does
not suppress actions produced by other 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?
        regards, tom lane


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

Предыдущее
От: Mark Kirkwood
Дата:
Сообщение: Re: [PATCHES] Continue transactions after errors in psql
Следующее
От: "Qingqing Zhou"
Дата:
Сообщение: Re: simplify register_dirty_segment()