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@candle.pha.pa.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)

Fri, 31 Jul 1998 11:23:22 -0400 (EDT)
Bruce Momjian <maillist@candle.pha.pa.us>
displaying debug info