Re: [HACKERS] debugging tools inside postgres

2011-06-25 Thread Martijn van Oosterhout
On Fri, Jun 24, 2011 at 02:35:08PM +0800, HuangQi wrote: > Hi, >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 > inc

Re: [HACKERS] debugging tools inside postgres

2011-06-24 Thread HuangQi
On 24 June 2011 23:21, Tom Lane wrote: > 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

Re: [HACKERS] debugging tools inside postgres

2011-06-24 Thread Tom Lane
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 >> inco

Re: [HACKERS] debugging tools inside postgres

2011-06-24 Thread Shigeru Hanada
(2011/06/24 19:14), HuangQi wrote: > 2011/6/24 Shigeru Hanada > >> (2011/06/24 15:35), HuangQi wrote: >> ex) >> elog(DEBUG1, "%s", nodeToString(plan)); > > Hi, > I don't know why but when I am debugging the query evaluation, the elog > function can not output to shell. What kind of t

Re: [HACKERS] debugging tools inside postgres

2011-06-24 Thread HuangQi
2011/6/24 Shigeru Hanada > (2011/06/24 15:35), HuangQi wrote: > > Hi, > > 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

Re: [HACKERS] debugging tools inside postgres

2011-06-24 Thread Shigeru Hanada
(2011/06/24 15:35), HuangQi wrote: > Hi, > 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 t

[HACKERS] debugging tools inside postgres

2011-06-23 Thread HuangQi
Hi, 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