]> granicus.if.org Git - postgresql/commit
Get rid of some old and crufty global variables in the planner. When
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 19 Feb 2007 07:03:34 +0000 (07:03 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 19 Feb 2007 07:03:34 +0000 (07:03 +0000)
commit7c5e5439d2a64ee82d54be2e064a4bb4602bad30
treeda8d85b50e284413823da3bc98975c03278cb582
parent90c301aaa9377d385d00d93462f3f656ada8981e
Get rid of some old and crufty global variables in the planner.  When
this code was last gone over, there wasn't really any alternative to
globals because we didn't have the PlannerInfo struct being passed all
through the planner code.  Now that we do, we can restructure things
to avoid non-reentrancy.  I'm fooling with this because otherwise I'd
have had to add another global variable for the planned compact
range table list.
18 files changed:
src/backend/nodes/outfuncs.c
src/backend/optimizer/README
src/backend/optimizer/path/allpaths.c
src/backend/optimizer/path/clausesel.c
src/backend/optimizer/plan/planagg.c
src/backend/optimizer/plan/planner.c
src/backend/optimizer/plan/subselect.c
src/backend/optimizer/prep/prepjointree.c
src/backend/optimizer/prep/preptlist.c
src/backend/optimizer/prep/prepunion.c
src/backend/optimizer/util/clauses.c
src/backend/utils/adt/selfuncs.c
src/include/nodes/nodes.h
src/include/nodes/primnodes.h
src/include/nodes/relation.h
src/include/optimizer/clauses.h
src/include/optimizer/planner.h
src/include/optimizer/subselect.h