Fix a bunch of bad interactions between partial indexes and the new
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 28 Jul 2005 20:26:22 +0000 (20:26 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 28 Jul 2005 20:26:22 +0000 (20:26 +0000)
commita6f0d62046318a99b811eed84dc45b0283fc7a2b
tree96bcaf33a153e22b934121e9e4c3fb90185dc6d4
parent5d140ebc99cb51dc25fec3f849a1a4ff1834741c
Fix a bunch of bad interactions between partial indexes and the new
planning logic for bitmap indexscans.  Partial indexes create corner
cases in which a scan might be done with no explicit index qual conditions,
and the code wasn't handling those cases nicely.  Also be a little
tenser about eliminating redundant clauses in the generated plan.
Per report from Dmitry Karasik.
src/backend/nodes/list.c
src/backend/optimizer/path/indxpath.c
src/backend/optimizer/path/orindxpath.c
src/backend/optimizer/plan/createplan.c
src/backend/optimizer/plan/planagg.c
src/backend/optimizer/util/restrictinfo.c
src/include/nodes/pg_list.h
src/include/optimizer/paths.h
src/include/optimizer/restrictinfo.h