Understanding Rule System

From: Juan Pablo Espino <jp(dot)espino(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Understanding Rule System
Date: 2005-05-11 21:10:00
Message-ID: 3e7daec10505111410123df1d7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2005-05-11 21:18:32 Re: Server instrumentation for 8.1
Previous Message Jim C. Nasby 2005-05-11 20:59:40 Re: Oracle Style packages on postgres