Re: Rules with sequence columns

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Rules with sequence columns
Дата
Msg-id 26419.1175098625@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Rules with sequence columns  (Ray Madigan <ray@madigans.org>)
Список pgsql-sql
Ray Madigan <ray@madigans.org> writes:
> Does anyone have any suggestion?

Use a trigger to propagate the data to the other table.  You can't make
this work reliably with a rule, because rules are macros and hence
inherently subject to double-evaluation problems when dealing with
volatile functions.
        regards, tom lane


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

Предыдущее
От: Ray Madigan
Дата:
Сообщение: Rules with sequence columns
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: union with count?