Re: rule system re-evaluates expressions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: rule system re-evaluates expressions
Дата
Msg-id 24605.1104774002@sss.pgh.pa.us
обсуждение исходный текст
Ответ на rule system re-evaluates expressions  (jan pfaler <jan_pfaler@yahoo.se>)
Список pgsql-bugs
jan pfaler <jan_pfaler@yahoo.se> writes:
> The rule-system seems to evaluate a functional value
> of a column anew. Please confim if this is a
> documented/intentional behaviour of the rule system?

Yes.

> The order of evaluation of the expresion(s) within
> original statemant and rule differ between "on insert"
> and "on update" rules.

Order of evaluation is never guaranteed.

Generally it's better to use triggers for the sort of problem you show
here.

            regards, tom lane

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

Предыдущее
От: moje
Дата:
Сообщение: Tsearch2 ispell parser unicode bug ?
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: BUG #1370: Problem with arrays in PL/PGSQL