OSDN Git Service

When a bitmap indexscan is using a partial index, it is necessary to include
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 18 May 2006 18:57:31 +0000 (18:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 18 May 2006 18:57:31 +0000 (18:57 +0000)
commitf32325264273e5d101064a7133aa5a3d90b0ad34
tree9cd20166981f16b6b8bd2e4e467f622678187a77
parent8d988c7d1c18ddb06eab96c98bf95b7b8f163175
When a bitmap indexscan is using a partial index, it is necessary to include
the partial index predicate in the scan's "recheck condition".  Otherwise,
if the scan becomes lossy for lack of bitmap memory, we would fail to enforce
that returned rows satisfy the predicate.  Noted while studying bug #2441
from Arjen van der Meijden.
src/backend/optimizer/plan/createplan.c