]> granicus.if.org Git - postgresql/commit
Merge restrictlist_selectivity into clauselist_selectivity by
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 4 Jan 2004 03:51:52 +0000 (03:51 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 4 Jan 2004 03:51:52 +0000 (03:51 +0000)
commit82b4dd394f50f75a34d3ddc1c7d54b8d8fcace33
tree1fb959074c117f48b987a77e7632ec6bbcc583da
parent21a12022818b6ac418d7a1544e92f8b13d61cc91
Merge restrictlist_selectivity into clauselist_selectivity by
teaching the latter to accept either RestrictInfo nodes or bare
clause expressions; and cache the selectivity result in the RestrictInfo
node when possible.  This extends the caching behavior of approx_selectivity
to many more contexts, and should reduce duplicate selectivity
calculations.
12 files changed:
src/backend/nodes/copyfuncs.c
src/backend/nodes/outfuncs.c
src/backend/optimizer/path/clausesel.c
src/backend/optimizer/path/costsize.c
src/backend/optimizer/path/indxpath.c
src/backend/optimizer/plan/initsplan.c
src/backend/optimizer/prep/prepunion.c
src/backend/optimizer/util/clauses.c
src/backend/optimizer/util/restrictinfo.c
src/include/nodes/relation.h
src/include/optimizer/clauses.h
src/include/optimizer/cost.h