pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Péder <dpeder@infoset.cz>
To: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: big advance for replication - if the record could update itself using rules...
Date: Wed, 13 Oct 1999 20:22:43 +0100
Message-ID: <01BF15B8.B4FB5840@Dan> (raw)

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




Message-ID: <01BF15B8.B4FB5840@Dan>
Permalink:  ../01BF15B8.B4FB5840@Dan/
Also on:    postgresql.org/message-id/01BF15B8.B4FB5840@Dan

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: dpeder@infoset.cz
  Subject: Re: big advance for replication - if the record could update itself using rules...
  In-Reply-To: <01BF15B8.B4FB5840@Dan>
  References: <01BF15B8.B4FB5840@Dan>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox