"Jackie Leng" <lengjianquan(at)163(dot)com> writes:
> So, my question is why not just add a bms_intersect in the second occasion
> just like the first one? Do we need to change so much?
finalize_plan already has a bms_intersect, but it's further down in the
routine (to share code instead of duplicating it in each of the switch
cases) --- in CVS HEAD, line 1199. This is not relevant to the patch
AFAICS.
regards, tom lane