RE: simple rule question

From: "Andrew Snow" <andrew(at)modulus(dot)org>
To: "Neil Conway" <nconway(at)klamath(dot)dyndns(dot)org>, <pgsql-general(at)postgresql(dot)org>
Subject: RE: simple rule question
Date: 2001-05-12 06:14:33
Message-ID: JEEGIJPOJIGGIIHGKOKOEEJLDDAA.andrew@modulus.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Try the CREATE RULE blah AS ON INSERT TO foo DO INSTEAD form of rule
creation (note the use of the keyword INSTEAD)..

> Would someone be kind enough to write a rule for me which does
> this? All the rules I've tried to write create infinite loops
> (since the RULE is defined as ON INSERT, and its action is
> doing an INSERT to the same table, which triggers the rule
> again).

- Andrew

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Janning Vygen 2001-05-12 08:55:57 newbie sql question: select every day another quote
Previous Message Neil Conway 2001-05-12 04:29:46 simple rule question