Re: Doubt in parser

From: Alvaro Herrera <alvherre(at)commandprompt(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-02-16 13:39:13
Message-ID: 20060216133913.GC4307@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Markus Schaber 2006-02-16 13:44:45 Re: qsort again (was Re: [PERFORM] Strange Create Index
Previous Message Ron 2006-02-16 13:38:45 Re: [PERFORM] qsort again