Add a back-link from IndexOptInfo structs to their parent RelOptInfo
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 27 Mar 2005 06:29:49 +0000 (06:29 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 27 Mar 2005 06:29:49 +0000 (06:29 +0000)
commit926e8a00d38e1873369ab9a24062440c82d7731c
tree9034ee995948ac39c0b6dd1606bc1f6213e7c8dd
parentfebc9a613cd523de84da883a81e2040c3b1336a6
Add a back-link from IndexOptInfo structs to their parent RelOptInfo
structs.  There are many places in the planner where we were passing
both a rel and an index to subroutines, and now need only pass the
index struct.  Notationally simpler, and perhaps a tad faster.
src/backend/optimizer/path/costsize.c
src/backend/optimizer/path/indxpath.c
src/backend/optimizer/path/orindxpath.c
src/backend/optimizer/path/pathkeys.c
src/backend/optimizer/plan/createplan.c
src/backend/optimizer/util/pathnode.c
src/backend/optimizer/util/plancat.c
src/include/nodes/relation.h
src/include/optimizer/cost.h
src/include/optimizer/pathnode.h
src/include/optimizer/paths.h