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

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Is there anyway to get list of table name, before raw parser is analyze?
Дата
Msg-id 4C01ED26.9070307@dunslane.net
обсуждение исходный текст
Ответ на Is there anyway to get list of table name, before raw parser is analyze?  (Mohammad Heykal Abdillah <heykal.abdillah@gmail.com>)
Ответы 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 wrote:
> Hi all,
>
> Right now i am trying to understand how SQL parser is work. 
>
> My question is there anyway to get list of table name and its atribut
> before raw parser is analyze?
>
> Because i like to understand how PostgreSQL "break-down" the asterik at
> target list, specialy in "natural join" case where PostgreSQL can give
> query result that have unabigous attribut and match the right join key.
>
>
>   

AIUI, expanding '*' is not done in the parser. The parser just makes an 
A_star node.

See src/backend/gram.y for the parser spec.

Maybe you need to explain what exactly you're trying to do.

cheers

andrew


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: small exclusion constraints patch
Следующее
От: Mohammad Heykal Abdillah
Дата:
Сообщение: Re: Is there anyway to get list of table name, before raw parser is analyze?