big advance for replication - if the record could update itself using rules... - Mailing list pgsql-sql

From Daniel Péder
Subject big advance for replication - if the record could update itself using rules...
Date
Msg-id 01BF15B8.B4FB5840@Dan
Whole thread Raw
List 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 by date:

Previous
From: Ottawa Online Digital Development
Date:
Subject: (no subject)
Next
From: "tjk@tksoft.com"
Date:
Subject: Re: [SQL] security: escaping user-supplied data