| От | Tom Lane |
|---|---|
| Тема | Re: how to watch parse/plan trees |
| Дата | |
| Msg-id | 4598.1009989668@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | how to watch parse/plan trees (Hannu Krosing <hannu@tm.ee>) |
| Список | pgsql-hackers |
Hannu Krosing <hannu@tm.ee> writes:
> How do you people look at various trees and lists when debugging them ?
I tend to start psql with PGOPTIONS="-d2" and then look at the
prettyprinted trees in the postmaster log.
If you have a bug that prevents you from getting as far as the parsetree
dump, however, gdb is probably the only way.
> Also could anyone recommend any tools for debugging gram.y or is this
> also done mostly by hand even for large grammars ?
Once you've got rid of any shift/reduce or reduce/reduce conflicts
(bison -v output is helpful for that), I find that the grammar itself
seldom has any surprising behaviors that you need to use a debugger
to follow.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера