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. ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster