displaying debug info
| От | Bruce Momjian | 
|---|---|
| Тема | displaying debug info | 
| Дата | |
| Msg-id | 199807311523.LAA25554@candle.pha.pa.us обсуждение исходный текст  | 
		
| Список | 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@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)
		
	В списке pgsql-hackers по дате отправления: