On Thu, May 27, 2004 at 19:35:56 -0700,
Sailesh Krishnamurthy <sailesh(at)cs(dot)berkeley(dot)edu> wrote:
> Another question about regular RULE processing .. suppose after
> applying a rule the resultant query tree is eligible for another rule,
> does pgsql's rule system keep iterating over and over until it reaches
> a fixed point or is there some heuristic in operation (just apply the
> rules twice ..) ? From my cursory inspection of the code it looks like
> the latter, but I'd like to know for sure.
Rule processing continues as long as there are rules to apply or the
query is terminated.
You might want to read up on rules in the documentation. They are the
mechanism used to make updateable views and can do some other interesting
things. And because they are fully visible to the optimizer (unlike
triggers) they don't prevent optimization.
In response to
pgsql-hackers by date
|Next:||From: Andreas Pflug||Date: 2004-05-28 16:29:48|
|Subject: Re: tablespaces and DB administration|
|Previous:||From: Matthew T. O'Connor||Date: 2004-05-28 16:18:10|
|Subject: Re: Win32, PITR, nested transactions, tablespaces|