From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | hackers(at)postgreSQL(dot)org (PostgreSQL-development) |
Subject: | displaying debug info |
Date: | 1998-07-31 15:23:22 |
Message-ID: | 199807311523.LAA25554@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
When running postgresql inside gdb, I have always found it difficult to
dump out structures. Here is something I found, that I have added to
the developers FAQ:
---------------------------------------------------------------------------
You can print nodes easily inside gdb. First, to disable output
truncation:
(gdb) set print elements 0
You may then use either of the next two commands to print out List,
Node, and structure contents. The first prints in a short format, and
the second in a long format:
(gdb) call nodeToString(any_pointer)
(gdb) call pprint(any_pointer)
--
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)
From | Date | Subject | |
---|---|---|---|
Next Message | Vadim Mikheev | 1998-07-31 15:29:20 | Re: [HACKERS] OR clause status report |
Previous Message | Bruce Momjian | 1998-07-31 15:15:15 | Re: [HACKERS] OR clause status report |