conditional rules VS 1 unconditional rule with multiple commands?

Поиск
Список
Период
Сортировка
От Davor J.
Тема conditional rules VS 1 unconditional rule with multiple commands?
Дата
Msg-id htli0h$udk$1@news.hub.org
обсуждение исходный текст
Ответы Re: conditional rules VS 1 unconditional rule with multiple commands?  (Alban Hertroys <dalroi@solfertje.student.utwente.nl>)
Список pgsql-general
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 unconditional
rule. So, I just wonder if there is any use in using conditionals in rules
over one multi-command rule?

Regards,
Davor



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

Предыдущее
От: Alban Hertroys
Дата:
Сообщение: Re: UPDATE...RETURNING col INTO var - what is returned?
Следующее
От: venu madhav
Дата:
Сообщение: Auto vacuum configuration in postgres.