• Tom Lane's avatar
    The 8.1 planner removes WHERE quals from the plan when the quals are · 1e3593ce
    Tom Lane authored
    implied by the predicate of a partial index being used to scan a table.
    However, this optimization is unsafe in an UPDATE, DELETE, or SELECT FOR
    UPDATE query, because the quals need to be rechecked by EvalPlanQual if
    there's an update conflict.  Per example from Jean-Samuel Reynaud.
    1e3593ce
createplan.c 82.4 KB