From: Tom Lane on 30 May 2010 10:19 Mohammad Heykal Abdillah <heykal.abdillah(a)gmail.com> writes: > Yes that i know, expanding '*' is done in analyzer part. I am try to do > is, move the expanding process to "before" raw_parser that produce by > gram.y is processed by analyzer. Like this : > sql query -> gram.y -> raw_parse_tree -> (expand the '*') -> analyze This seems fundamentally misguided. Using semantic knowledge from the system catalogs to interpret the raw parse tree is exactly what the analyze step is for. You can't move part of that operation to a separate pass without complicating matters a lot, and probably breaking some subtle considerations such as when to first obtain locks. Why don't you just modify parse analysis to do whatever it is you had in mind to do differently? regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers(a)postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
|
Pages: 1 Prev: dividing money by money Next: [HACKERS] server authentication over Unix-domain sockets |