Re: Rules/Trigges Trade-offs

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Rules/Trigges Trade-offs
Дата
Msg-id 200212061631.06077.dev@archonet.com
обсуждение исходный текст
Ответ на Rules/Trigges Trade-offs  (Jean-Luc Lachance <jllachan@nsd.ca>)
Список pgsql-sql
On Friday 06 Dec 2002 4:03 pm, Jean-Luc Lachance wrote:
> Hi all!
>
> Is there a guideline on the use of rules compared to triggers when both
> can be use to achieve the same result?

If I can use rules I do. Rules rewrite the query so are processed once,
whereas triggers get processed for every row.
--  Richard Huxton


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

Предыдущее
От: Jean-Luc Lachance
Дата:
Сообщение: Rules/Trigges Trade-offs
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Rules/Trigges Trade-offs