Re: Doubt in parser - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Doubt in parser
Date
Msg-id 20060216133913.GC4307@surnet.cl
Whole thread Raw
In response to Doubt in parser  (Dhanaraj <Dhanaraj.M@Sun.COM>)
List pgsql-hackers
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?

The bootstrap parser is using only in bootstrap mode, which is when the
template1 database is initially created.  It has a completely different
syntax than the main parser.

If what you are looking for is to implement a new command or modify an
existing one, ignore the bootstrap parser.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: Ron
Date:
Subject: Re: [PERFORM] qsort again
Next
From: Markus Schaber
Date:
Subject: Re: qsort again (was Re: [PERFORM] Strange Create Index