Re: printing raw parse tree

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема Re: printing raw parse tree
Дата
Msg-id 20080731.075722.102913365.t-ishii@sraoss.co.jp
обсуждение исходный текст
Ответ на Re: printing raw parse tree  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: printing raw parse tree  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> Isn't the post-parse-analysis tree far more interesting?  There's
> already debug support for printing that.

It's interesting too. But I think compraring raw parse tree and
post-parse-analysis tree is sometimes usefull to understand the source
code.

> 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

Yes, that's what I mean. However if I'm the only one who is
interesting in the raw parse tree, I can live with gdb/pprint().

Another issue is, some node types are not supported in outfuncs.c.

WARNING:  could not dump unrecognized node type: 911

I could post patches for this if there's enough interest.
--
Tatsuo Ishii
SRA OSS, Inc. Japan


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Should creating a new base type require superuser status?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: printing raw parse tree