Re: [BUGS] Default values, inserts, and rules...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [BUGS] Default values, inserts, and rules...
Дата
Msg-id 28863.1029988512@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [BUGS] Default values, inserts, and rules...  (Sean Chittenden <sean@chittenden.org>)
Ответы Re: [BUGS] Default values, inserts, and rules...
Список pgsql-general
Sean Chittenden <sean@chittenden.org> writes:
> ... That said, if things are working correctly in CVS, would you still
> recommend a trigger over a rule?

Yes I would.  I don't think you've thought carefully enough about the
implications of the statement that rules are macros... the perennial
problem with macros is multiple evaluations of an argument, and if the
argument has side-effects (like nextval()) you *will* get bit.

            regards, tom lane

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