Understanding Rule System

Поиск
Список
Период
Сортировка
От Juan Pablo Espino
Тема Understanding Rule System
Дата
Msg-id 3e7daec10505111410123df1d7@mail.gmail.com
обсуждение исходный текст
Ответы Re: Understanding Rule System
Список pgsql-hackers
Hello all

I have been studying the rule system in Postgres.  I understand that
the original query tree is the input at the rewrite, and then this
query tree is modified by the rewrite in case that there is a rule.

SQL query ----> Parser ----> Rewrite ----> Planner ----> Executor                                 ^^^^            ^^^^
                             Query         New Query                               tree            tree 

I would like to know how the rewrite detects that a rule in a table
exists, and if it possible you indicate me where in the source code
it's implemented.  Any comments are welcome, thanks in advance.

Juan P. Espino


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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Oracle Style packages on postgres
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Server instrumentation for 8.1