Re: seq. DEFAULT values and rules

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: seq. DEFAULT values and rules
Дата
Msg-id 7883.1372860890@sss.pgh.pa.us
обсуждение исходный текст
Ответ на seq. DEFAULT values and rules  (salah jubeh <s_jubeh@yahoo.com>)
Список pgsql-general
salah jubeh <s_jubeh@yahoo.com> writes:
> Is this a bug ?

No, it's a documented, operating-as-designed behavior.  Rules are macros
and therefore have all the usual multiple-evaluation-of-arguments
hazards.

If you just want to propagate data from one table to another, a trigger
is often a better choice, or at least one with fewer surprises.

            regards, tom lane


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

Предыдущее
От: salah jubeh
Дата:
Сообщение: seq. DEFAULT values and rules
Следующее
От: Stuart Ford
Дата:
Сообщение: Re: pg_largeobject.sql script not run after upgrade