Re: Docs patch to note that rules only get run once per query.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sean Reifschneider <jafo(at)tummy(dot)com>
Cc: pgsql-docs(at)postgresql(dot)org, Jan Wieck <JanWieck(at)Yahoo(dot)com>
Subject: Re: Docs patch to note that rules only get run once per query.
Date: 2003-04-14 04:11:55
Message-ID: 1756.1050293515@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

Sean Reifschneider <jafo(at)tummy(dot)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

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Jan Wieck 2003-04-14 11:21:01 Re: Docs patch to note that rules only get run once per query.
Previous Message Sean Reifschneider 2003-04-14 03:58:29 Re: Docs patch to note that rules only get run once per query.