]> granicus.if.org Git - postgresql/commit
Fix oversight in indexscan plan creation. I recently added code to use
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 6 Oct 2005 16:01:55 +0000 (16:01 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 6 Oct 2005 16:01:55 +0000 (16:01 +0000)
commitfa63749d2177c3bf700f10a3d297954328ddf3bf
treece211dbc84647e3cba290364a1db0f6da5871447
parente9f11c6b648a2237690cf6f7773112d6706232a2
Fix oversight in indexscan plan creation.  I recently added code to use
predicate_implied_by() to detect redundant filter conditions, but forgot
that predicate_implied_by() assumes its first argument contains only
immutable functions.  Add a check to guarantee that.  Also, test to see
if filter conditions can be discarded because they are redundant with
the predicate of a partial index.
src/backend/optimizer/plan/createplan.c
src/backend/optimizer/util/predtest.c