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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Is there anyway to get list of table name, before raw parser is analyze?
Дата
Msg-id 5383.1275229146@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Is there anyway to get list of table name, before raw parser is analyze?  (Mohammad Heykal Abdillah <heykal.abdillah@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: small exclusion constraints patch
Следующее
От: Tom Lane
Дата:
Сообщение: Re: tsvector pg_stats seems quite a bit off.