forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit141225b
committed
Mop up some undue familiarity with the innards of Bitmapsets.
nodeAppend.c used non-nullness of appendstate->as_valid_subplans asa state flag to indicate whether it'd done ExecFindMatchingSubPlans(or some sufficient approximation to that). This was prettyquestionable even in the beginning, since it wouldn't really workright if there are no valid subplans. It got more questionableafter commit27e1f14 added logic that could reduce as_valid_subplansto an empty set: at that point we were depending on unspecifiedbehavior of bms_del_members, namely that it'd not return an emptyset as NULL. It's about to start doing that, which breaks thislogic entirely. Hence, add a separate boolean flag to signalwhether as_valid_subplans has been computed.Also fix a previously-cosmetic bug in nodeAgg.c, wherein it ignoredthe return value of bms_del_member instead of updating its pointer.Patch by me; thanks to Nathan Bossart and Richard Guo for review.Discussion:https://postgr.es/m/1159933.1677621588@sss.pgh.pa.us1 parent462bb7f commit141225b
File tree
3 files changed
+25
-15
lines changed- src
- backend/executor
- include/nodes
3 files changed
+25
-15
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1642 | 1642 |
| |
1643 | 1643 |
| |
1644 | 1644 |
| |
1645 |
| - | |
| 1645 | + | |
1646 | 1646 |
| |
1647 | 1647 |
| |
1648 | 1648 |
| |
|
Lines changed: 23 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
157 | 157 |
| |
158 | 158 |
| |
159 | 159 |
| |
| 160 | + | |
160 | 161 |
| |
| 162 | + | |
| 163 | + | |
161 | 164 |
| |
162 | 165 |
| |
163 | 166 |
| |
| |||
170 | 173 |
| |
171 | 174 |
| |
172 | 175 |
| |
| 176 | + | |
173 | 177 |
| |
174 | 178 |
| |
175 | 179 |
| |
| |||
259 | 263 |
| |
260 | 264 |
| |
261 | 265 |
| |
262 |
| - | |
| 266 | + | |
263 | 267 |
| |
264 | 268 |
| |
265 | 269 |
| |
| |||
414 | 418 |
| |
415 | 419 |
| |
416 | 420 |
| |
| 421 | + | |
417 | 422 |
| |
418 | 423 |
| |
419 |
| - | |
420 |
| - | |
421 |
| - | |
422 |
| - | |
423 |
| - | |
| 424 | + | |
| 425 | + | |
424 | 426 |
| |
425 | 427 |
| |
426 | 428 |
| |
| |||
574 | 576 |
| |
575 | 577 |
| |
576 | 578 |
| |
577 |
| - | |
| 579 | + | |
578 | 580 |
| |
579 |
| - | |
| 581 | + | |
| 582 | + | |
580 | 583 |
| |
581 | 584 |
| |
| 585 | + | |
| 586 | + | |
582 | 587 |
| |
583 | 588 |
| |
584 | 589 |
| |
| |||
640 | 645 |
| |
641 | 646 |
| |
642 | 647 |
| |
643 |
| - | |
| 648 | + | |
644 | 649 |
| |
645 | 650 |
| |
646 | 651 |
| |
| 652 | + | |
647 | 653 |
| |
648 | 654 |
| |
649 | 655 |
| |
| |||
715 | 721 |
| |
716 | 722 |
| |
717 | 723 |
| |
718 |
| - | |
| 724 | + | |
719 | 725 |
| |
720 | 726 |
| |
721 | 727 |
| |
| 728 | + | |
| 729 | + | |
722 | 730 |
| |
723 | 731 |
| |
724 | 732 |
| |
| |||
866 | 874 |
| |
867 | 875 |
| |
868 | 876 |
| |
869 |
| - | |
| 877 | + | |
870 | 878 |
| |
871 | 879 |
| |
872 | 880 |
| |
| 881 | + | |
873 | 882 |
| |
874 | 883 |
| |
875 | 884 |
| |
| |||
1143 | 1152 |
| |
1144 | 1153 |
| |
1145 | 1154 |
| |
| 1155 | + | |
1146 | 1156 |
| |
1147 | 1157 |
| |
1148 | 1158 |
| |
| |||
1161 | 1171 |
| |
1162 | 1172 |
| |
1163 | 1173 |
| |
1164 |
| - | |
1165 |
| - | |
1166 |
| - | |
| 1174 | + | |
| 1175 | + | |
1167 | 1176 |
| |
1168 | 1177 |
| |
1169 | 1178 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1350 | 1350 |
| |
1351 | 1351 |
| |
1352 | 1352 |
| |
| 1353 | + | |
1353 | 1354 |
| |
1354 | 1355 |
| |
1355 | 1356 |
| |
|
0 commit comments
Comments
(0)