OSDN Git Service

Do parse analysis of an EXPLAIN's contained statement during the normal
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 Jan 2010 22:36:35 +0000 (22:36 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 Jan 2010 22:36:35 +0000 (22:36 +0000)
commit08f8d478ebc37e42f3ced07d17dae83d6a9a3810
treeaedef12bd96c3a789c72ae38e3cfab39801d4556
parent00b5ccebdd0d2925a2e5db0fdf067ea4b7bae799
Do parse analysis of an EXPLAIN's contained statement during the normal
parse analysis phase, rather than at execution time.  This makes parameter
handling work the same as it does in ordinary plannable queries, and in
particular fixes the incompatibility that Pavel pointed out with plpgsql's
new handling of variable references.  plancache.c gets a little bit
grottier, but the alternatives seem worse.
src/backend/commands/explain.c
src/backend/nodes/params.c
src/backend/optimizer/plan/setrefs.c
src/backend/parser/analyze.c
src/backend/tcop/utility.c
src/backend/utils/cache/plancache.c
src/include/nodes/params.h
src/include/nodes/parsenodes.h
src/include/optimizer/planmain.h