mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21: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:
@@ -949,9 +949,6 @@ build_index_paths(PlannerInfo *root, RelOptInfo *rel,
|
||||
|
||||
/* We do not want the index's rel itself listed in outer_relids */
|
||||
outer_relids = bms_del_member(outer_relids, rel->relid);
|
||||
/* Enforce convention that outer_relids is exactly NULL if empty */
|
||||
if (bms_is_empty(outer_relids))
|
||||
outer_relids = NULL;
|
||||
|
||||
/* Compute loop_count for cost estimation purposes */
|
||||
loop_count = get_loop_count(root, rel->relid, outer_relids);
|
||||
|
||||
Reference in New Issue
Block a user