Re: Rules question

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Adam Kavan <akavan(at)cox(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Rules question
Date: 2003-09-16 14:18:40
Message-ID: 20030916071558.A97577@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Mon, 15 Sep 2003, Adam Kavan wrote:

> 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?

Rules are like a macro system, you can't generally get around loops by
using where conditions on the rule. You'll need to either break the
recursion by using something like a view or write the logic into a
before trigger.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kaare Rasmussen 2003-09-16 14:18:55 Re: State of Beta 2
Previous Message scott.marlowe 2003-09-16 14:13:19 Re: CONCAT function