Re: printing raw parse tree

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: printing raw parse tree
Дата
Msg-id 25397.1217429796@sss.pgh.pa.us
обсуждение исходный текст
Ответ на printing raw parse tree  (Tatsuo Ishii <ishii@postgresql.org>)
Ответы Re: printing raw parse tree  (Tatsuo Ishii <ishii@postgresql.org>)
Список pgsql-hackers
Tatsuo Ishii <ishii@postgresql.org> writes:
> Very often I find it is useful to print raw parse trees for debugging
> and/or understanding PostgreSQL internals and I personally modify
> pg_parse_query() to accomplish it. If this is common among developers,
> I would like to post small patches. Opinion?

Isn't the post-parse-analysis tree far more interesting?  There's
already debug support for printing that.

Of course, you can call pprint() from anyplace using gdb, so for
occasional debugging needs I think no special code support is needed.
I think what you are proposing is something equivalent to the
debug_print_parse GUC, and I'm not sure it's worth that.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Type Categories for User-Defined Types
Следующее
От: "Ryan Bradetich"
Дата:
Сообщение: Re: Type Categories for User-Defined Types