mirror of
https://github.com/postgres/postgres.git
synced 2025-10-18 04:29:09 +03:00
Remove local optimizations of empty Bitmapsets into null pointers.
These are all dead code now that it's done centrally. Patch by me; thanks to Nathan Bossart and Richard Guo for review. Discussion: https://postgr.es/m/1159933.1677621588@sss.pgh.pa.us
This commit is contained in:
@@ -772,8 +772,6 @@ build_join_rel(PlannerInfo *root,
|
||||
*/
|
||||
joinrel->direct_lateral_relids =
|
||||
bms_del_members(joinrel->direct_lateral_relids, joinrel->relids);
|
||||
if (bms_is_empty(joinrel->direct_lateral_relids))
|
||||
joinrel->direct_lateral_relids = NULL;
|
||||
|
||||
/*
|
||||
* Construct restrict and join clause lists for the new joinrel. (The
|
||||
@@ -1024,11 +1022,6 @@ min_join_parameterization(PlannerInfo *root,
|
||||
*/
|
||||
result = bms_union(outer_rel->lateral_relids, inner_rel->lateral_relids);
|
||||
result = bms_del_members(result, joinrelids);
|
||||
|
||||
/* Maintain invariant that result is exactly NULL if empty */
|
||||
if (bms_is_empty(result))
|
||||
result = NULL;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user