Rules question

From: Adam Kavan <akavan(at)cox(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Rules question
Date: 2003-09-15 23:24:24
Message-ID: 5.2.1.1.0.20030915182153.01811920@pop.central.cox.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am starting to work with rules. I think I have them down but the
folowing one is giving me grief. It tells me that it has rewritten 100
times and probably has looped. The columns ID and Location make up the
primary key so I am sure that the result update should only effect one
row. Anyone know what I am missing?

CREATE OR REPLACE RULE "set_changed" AS ON UPDATE TO "GameInformation"
WHERE NEW."Changed" =FALSE DO UPDATE "GameInformation" SET "Changed" = TRUE
WHERE "Location" = NEW."Location" AND "ID" = NEW."ID";

--- Adam Kavan
--- akavan(at)cox(dot)net

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2003-09-15 23:28:39 Re: State of Beta 2
Previous Message Ron Johnson 2003-09-15 23:04:08 Re: need for in-place upgrades (was Re: State of