Re: Is there anyway to get list of table name, before raw parser is analyze? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Is there anyway to get list of table name, before raw parser is analyze?
Date
Msg-id 5383.1275229146@sss.pgh.pa.us
Whole thread Raw
In response to Re: Is there anyway to get list of table name, before raw parser is analyze?  (Mohammad Heykal Abdillah <heykal.abdillah@gmail.com>)
List pgsql-hackers
Mohammad Heykal Abdillah <heykal.abdillah@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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: small exclusion constraints patch
Next
From: Tom Lane
Date:
Subject: Re: tsvector pg_stats seems quite a bit off.