mirror of
https://github.com/postgres/postgres.git
synced 2025-07-18 17:42:25 +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:
@ -877,15 +877,7 @@ UpdateChangedParamSet(PlanState *node, Bitmapset *newchg)
|
||||
* include anything else into its chgParam set.
|
||||
*/
|
||||
parmset = bms_intersect(node->plan->allParam, newchg);
|
||||
|
||||
/*
|
||||
* Keep node->chgParam == NULL if there's not actually any members; this
|
||||
* allows the simplest possible tests in executor node files.
|
||||
*/
|
||||
if (!bms_is_empty(parmset))
|
||||
node->chgParam = bms_join(node->chgParam, parmset);
|
||||
else
|
||||
bms_free(parmset);
|
||||
node->chgParam = bms_join(node->chgParam, parmset);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user