pgsql: When building a bitmap scan, must copy the bitmapqualorig

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: When building a bitmap scan, must copy the bitmapqualorig
Date: 2006-01-29 18:55:55
Message-ID: 20060129185555.BC2859DCA5A@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
When building a bitmap scan, must copy the bitmapqualorig expression tree
to avoid sharing substructure with the lower-level indexquals. This is
currently only an issue if there are SubPlans in the indexquals, which is
uncommon but not impossible --- see bug #2218 reported by Nicholas Vinen.
We use the same kluge for indexqual vs indexqualorig in the index scans
themselves ... would be nice to clean this up someday.

Tags:
----
REL8_1_STABLE

Modified Files:
--------------
pgsql/src/backend/optimizer/plan:
createplan.c (r1.202.2.1 -> r1.202.2.2)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/plan/createplan.c.diff?r1=1.202.2.1&r2=1.202.2.2)

Browse pgsql-committers by date

  From Date Subject
Next Message User H-saito 2006-01-30 12:10:12 psqlodbc - psqlodbc: Correction for VC6 compile.
Previous Message Tom Lane 2006-01-29 18:55:49 pgsql: When building a bitmap scan, must copy the bitmapqualorig