Re: Problem with sequence et rule

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem with sequence et rule
Дата
Msg-id 9632.1091323709@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Problem with sequence et rule  (Oliver Elphick <olly@lfix.co.uk>)
Ответы Re: Problem with sequence et rule
Список pgsql-bugs
Oliver Elphick <olly@lfix.co.uk> writes:
> On Sat, 2004-07-31 at 23:57, Marc Boucher wrote:
>> Now my questions are:
>> - Is this an expected behavior ?

> I couldn't answer that.

It is.  Rules are essentially macros and so you have all the usual
potential gotchas with multiple evaluations of their input arguments.

The recommended way to handle this type of problem is with a trigger
rather than a rule.

            regards, tom lane

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