Re: Doubt in parser

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Doubt in parser
Дата
Msg-id 4363.1141172857@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Doubt in parser  (Michael Glaesemann <grzm@myrealbox.com>)
Список pgsql-hackers
Michael Glaesemann <grzm@myrealbox.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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Glaesemann
Дата:
Сообщение: Re: Doubt in parser
Следующее
От: "Mark Woodward"
Дата:
Сообщение: Re: pg_config, pg_service.conf, postgresql.conf ....