mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +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:
@@ -125,8 +125,6 @@ find_placeholder_info(PlannerInfo *root, PlaceHolderVar *phv)
|
||||
*/
|
||||
rels_used = pull_varnos(root, (Node *) phv->phexpr);
|
||||
phinfo->ph_lateral = bms_difference(rels_used, phv->phrels);
|
||||
if (bms_is_empty(phinfo->ph_lateral))
|
||||
phinfo->ph_lateral = NULL; /* make it exactly NULL if empty */
|
||||
phinfo->ph_eval_at = bms_int_members(rels_used, phv->phrels);
|
||||
/* If no contained vars, force evaluation at syntactic location */
|
||||
if (bms_is_empty(phinfo->ph_eval_at))
|
||||
|
||||
Reference in New Issue
Block a user