Skip site navigation (1) Skip section navigation (2)

Re: Doubt in parser

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Glaesemann <grzm(at)myrealbox(dot)com>
Cc: Dhanaraj <Dhanaraj(dot)M(at)Sun(dot)COM>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Doubt in parser
Date: 2006-03-01 00:27:37
Message-ID: 4363.1141172857@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Michael Glaesemann <grzm(at)myrealbox(dot)com> writes:
> On Feb 16, 2006, at 21:37 , Dhanaraj wrote:
>> 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).

No, not even close.  The bootstrap parser reads the "bki" language
defined here:
http://developer.postgresql.org/docs/postgres/bki.html

"bki" is simple enough that it's hardly even worth using a bison parser
for, but someone did it that way so that's what we've got.

			regards, tom lane

In response to

pgsql-hackers by date

Next:From: Mark KirkwoodDate: 2006-03-01 00:48:05
Subject: Re: pg_config, pg_service.conf, postgresql.conf ....
Previous:From: Michael GlaesemannDate: 2006-03-01 00:23:50
Subject: Re: Doubt in parser

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group