Re: On query rewrite

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: On query rewrite
Дата
Msg-id 20040528162345.GA31689@wolff.to
обсуждение исходный текст
Ответ на Re: On query rewrite  (Sailesh Krishnamurthy <sailesh@cs.berkeley.edu>)
Список pgsql-hackers
On Thu, May 27, 2004 at 19:35:56 -0700, Sailesh Krishnamurthy <sailesh@cs.berkeley.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.


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

Предыдущее
От: "Matthew T. O'Connor"
Дата:
Сообщение: Re: Win32, PITR, nested transactions, tablespaces
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: yet another contrib module