Re: Docs patch to note that rules only get run once per query. - Mailing list pgsql-docs

From Tom Lane
Subject Re: Docs patch to note that rules only get run once per query.
Date
Msg-id 1756.1050293515@sss.pgh.pa.us
Whole thread Raw
In response to Re: Docs patch to note that rules only get run once per query.  (Sean Reifschneider <jafo@tummy.com>)
List pgsql-docs
Sean Reifschneider <jafo@tummy.com> writes:
> On Sun, Apr 13, 2003 at 11:47:32PM -0400, Tom Lane wrote:
>> So I feel dissatisfied with the above "clarification".  Can you think
>> of another way to explain it?

> Unfortunately, I really don't understand it...  My first thought was
> that it was a bug, but when I presented it to the bugs list they said
> that the rule only gets executed once per query and that triggers should
> be used if you want to run on every impacted row.

Well, it could be argued that the present rule behavior is buggy, not
because there's anything wrong with it on its own terms, but just
because too many people don't understand it :-(

Jan, can you offer any words of wisdom here?

            regards, tom lane


pgsql-docs by date:

Previous
From: Sean Reifschneider
Date:
Subject: Re: Docs patch to note that rules only get run once per query.
Next
From: Jan Wieck
Date:
Subject: Re: Docs patch to note that rules only get run once per query.