Re: displaying contents - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: displaying contents
Date
Msg-id 20041227233806.GK4154@dcc.uchile.cl
Whole thread Raw
In response to displaying contents  (Jaime Casanova <systemguards@yahoo.com>)
List pgsql-hackers
On Mon, Dec 27, 2004 at 03:11:11PM -0600, Jaime Casanova wrote:

Jaime,

> there is way to display all the values (fields) in a 
> tree node like this?  for debug purpouses.
> 
> Query       *query;

Have you tried gdb already?  You attach it to a running backend and can
query the (err) Query struct.

Query is a Node, so it can be stringified by nodeToString(); you can
elog/ereport that or use elog_node_display().

-- 
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"Postgres is bloatware by design: it was built to housePhD theses." (Joey Hellerstein, SIGMOD annual conference 2002)


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Bgwriter behavior
Next
From: "Magnus Hagander"
Date:
Subject: Re: Ready for RC3?