Update rule

Поиск
Список
Период
Сортировка
От Secrétariat
Тема Update rule
Дата
Msg-id 009e01c4ee96$7ad28aa0$0100a8c0@lrp43008
обсуждение исходный текст
Ответы Re: Update rule
Список pgsql-general
Hello !
 
I wish to create a rule to write in records who and when modified them.
I wrote :
CREATE OR REPLACE RULE tarif_upd AS
   ON UPDATE TO tarifs
   DO ALSO
      UPDATE tarifs
            SET dmodtar = current_date, umodtar = current_user
      WHERE dmodtar <> current_date AND umodtar <> current_user ;
But I obtain an infinite recursion !
It seems not using the where clause ?
Is it a bug ?
How can I workaround ...
 
Best regards.
Luc

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: pg_dump and pgpool
Следующее
От: Pierre-Frédéric Caillaud
Дата:
Сообщение: Re: Update rule