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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-hackers by date

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