big advance for replication - if the record could update itself using rules...

Поиск
Список
Период
Сортировка
От Daniel Péder
Тема big advance for replication - if the record could update itself using rules...
Дата
Msg-id 01BF15B8.B4FB5840@Dan
обсуждение исходный текст
Список pgsql-sql
creating rule like such:

mydb => create rule updtimeset as on update to mytab do update mytab set updtime = current_time ;

causes this:

mydb=> update mytab  set updtime = current_time;
ERROR:  query rewritten 10 times, may contain cycles

offcourse.

however, it vould be great to have possibility to do something like that.

Yes, i could use triggers, however such solution is not so clear as the rule-method could be...

or do somebody know about ... ?

--
dan peder
dpeder@infoset.cz



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

Предыдущее
От: Ottawa Online Digital Development
Дата:
Сообщение: (no subject)
Следующее
От: "tjk@tksoft.com"
Дата:
Сообщение: Re: [SQL] security: escaping user-supplied data