pgsql: The 8.1 planner removes WHERE quals from the plan when the quals

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: The 8.1 planner removes WHERE quals from the plan when the quals
Date: 2006-04-25 16:54:10
Message-ID: 20060425165410.2FFA011F6095@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
The 8.1 planner removes WHERE quals from the plan when the quals are
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.

Modified Files:
--------------
pgsql/src/backend/optimizer/plan:
createplan.c (r1.208 -> r1.209)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/plan/createplan.c.diff?r1=1.208&r2=1.209)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2006-04-25 16:54:27 pgsql: The 8.1 planner removes WHERE quals from the plan when the quals
Previous Message James William Pye 2006-04-25 16:48:30 python - ctl: Imported Sources