From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | peter(dot)trautmeier(at)gmx(dot)de |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: EXEC_EVALDEBUG debugging broken? |
Date: | 2007-07-24 16:25:56 |
Message-ID: | 10933.1185294356@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
peter(dot)trautmeier(at)gmx(dot)de writes:
> Interesting, what do you mean by Plan trees are 'read only' now? Is it the distinction between Plan trees and their corresponding PlanState nodes that indicate the 'read only' behaviour and the 'writeable' state of the Plan, respectively, that was introduced at that time?
Yeah, exactly. ExecInitExpr builds an ExprState tree that mirrors the
structure of the Expr tree but contains all the run-time-variable data.
This tree is what's now being passed to ExecQual.
The problem is that outfuncs.c knows about all the Expr node types and
none of the ExprState types, there being no need to dump the latter in
normal use. There is a valid argument that we ought to support dumping
PlanState and ExprState trees for debugging purposes, but it just seems
like more maintenance effort than it's worth ...
> (Is there a way do get this type info with gdb's help?)
"p *(Node *) ptr" ought to do it.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | peter.trautmeier | 2007-07-24 16:26:14 | Design: Escort info from WHERE clause to executor? |
Previous Message | Tom Lane | 2007-07-24 16:08:42 | Re: strange buildfarm failure on lionfish |