Re: Doubt in parser

From: Michael Glaesemann <grzm(at)myrealbox(dot)com>
To: Dhanaraj <Dhanaraj(dot)M(at)Sun(dot)COM>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Doubt in parser
Date: 2006-03-01 00:23:50
Message-ID: 9BC66B41-80E2-4E18-82E0-8B4DE392B49F@myrealbox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On Feb 16, 2006, at 21:37 , Dhanaraj wrote:

> hi
>
> currently i looking at the postgres src code. I saw the scanner and
> parser implemetations at two different places (src/backend/parser/
> and /src/bakend/bootstrp). Can anybody tell me the purpose of
> having two phases?? or will this help to parse the queries at
> different levels?

AFAIK, I don't think the code is exactly the same (though I haven't
checked). The bootstrap code is used to get the PostgreSQL server
started: there is a considerable amount of information stored in the
system catalogs that the server needs to use. The server needs access
to a scanner/parser to be able to read this information. The
bootstrap code provides the server with enough knowledge to get
started. The backend parser and scanner is more feature-filled.

Someone please feel free to step in and correct me if I'm off base :)

Michael Glaesemann
grzm myrealbox com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-03-01 00:27:37 Re: Doubt in parser
Previous Message Bruce Momjian 2006-03-01 00:23:03 Re: [HACKERS] pg_service.conf