Re: debugging tools inside postgres
От
Tom Lane
Тема
Re: debugging tools inside postgres
Дата
Msg-id
26054.1308928913@sss.pgh.pa.us
Ответ на
Re: debugging tools inside postgres (Shigeru Hanada)
Список
Дерево обсуждения
debugging tools inside postgres HuangQi <huangqiyx@gmail.com>
Re: debugging tools inside postgres Martijn van Oosterhout <kleptog@svana.org>
Re: debugging tools inside postgres Shigeru Hanada <shigeru.hanada@gmail.com>
Re: debugging tools inside postgres Tom Lane <tgl@sss.pgh.pa.us>
Re: debugging tools inside postgres HuangQi <huangqiyx@gmail.com>
Re: debugging tools inside postgres HuangQi <huangqiyx@gmail.com>
Re: debugging tools inside postgres Shigeru Hanada <shigeru.hanada@gmail.com>
Shigeru Hanada writes: > (2011/06/24 15:35), HuangQi wrote: >> I'm trying to debug a modification for the query planner. But I found it >> seems the data structure of my planned query is incorrect. I was trying to >> print out the data structure by use the "p" command in gdb which is quite >> inconvenient and takes time. May I know is there any embedded function in >> postgres to print out the node data structures, or any other plan related >> data structures? Thanks. > I think nodeToString() would help. For interactive use in gdb, I generally do call pprint(..node pointer..) which prints to the postmaster log. regards, tom lane
В списке pgsql-hackers по дате отправления
От: Alvaro Herrera
Дата: