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

From: Daniel Péder <dpeder(at)infoset(dot)cz>
To: "'pgsql-sql(at)postgresql(dot)org'" <pgsql-sql(at)postgresql(dot)org>
Subject: big advance for replication - if the record could update itself using rules...
Date: 1999-10-13 19:22:43
Message-ID: 01BF15B8.B4FB5840@Dan
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)infoset(dot)cz

Browse pgsql-sql by date

  From Date Subject
Next Message tjk@tksoft.com 1999-10-13 20:54:32 Re: [SQL] security: escaping user-supplied data
Previous Message Daniel Péder 1999-10-13 17:50:40 the oid is uknown during execution of rule..insert ? (psql ver 6.5.2)