mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Remove leftover code in deconstruct_distribute_oj_quals().
The initial "put back OJ relids" adjustment of ojscope was incorrect and unnecessary; it seems to be a leftover from when I (tgl) was trying to get this function to work at all. Richard Guo Discussion: https://postgr.es/m/CAMbWs4-L2C47ZGZPabBAi5oDZsKmsbvhYcGCy5o=gCjsaG_ZQA@mail.gmail.com
This commit is contained in:
@ -1903,13 +1903,6 @@ deconstruct_distribute_oj_quals(PlannerInfo *root,
|
||||
int save_last_rinfo_serial;
|
||||
ListCell *lc;
|
||||
|
||||
/*
|
||||
* Put any OJ relids that were removed from min_righthand back into
|
||||
* ojscope, else distribute_qual_to_rels will complain.
|
||||
*/
|
||||
ojscope = bms_join(ojscope, bms_intersect(sjinfo->commute_below,
|
||||
sjinfo->syn_righthand));
|
||||
|
||||
/* Identify the outer joins this one commutes with */
|
||||
joins_above = sjinfo->commute_above_r;
|
||||
joins_below = bms_intersect(sjinfo->commute_below,
|
||||
|
Reference in New Issue
Block a user