• Tom Lane's avatar
    When building a bitmap scan, must copy the bitmapqualorig expression tree · 3276e911
    Tom Lane authored
    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.
    3276e911
createplan.c 81.5 KB