Re: Rules question

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Rules question
Дата
Msg-id 20030916071558.A97577@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Rules question  (Adam Kavan <akavan@cox.net>)
Список 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.

В списке pgsql-general по дате отправления:

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: CONCAT function
Следующее
От: Kaare Rasmussen
Дата:
Сообщение: Re: State of Beta 2