forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb7e2cbc
committed
Update Append's idea of first_partial_plan
It turns out that after runtime partition pruning, Append'sfirst_partial_plan does not accurately represent partial plans to run,if any of those got pruned. This could limit participation of workersin some partial subplans, if other subplans got pruned. Fix it bykeeping an index of the first valid partial subplan in the state node,determined at execnode Init time.Author: David Rowley, with cosmetic changes by me.Discussion:https://postgr.es/m/CAKJS1f8o2Yd=rOP=Et3A0FWgF+gSAOkFSU6eNhnGzTPV7nN8sQ@mail.gmail.com1 parent5510154 commitb7e2cbc
2 files changed
+19
-7
lines changedLines changed: 17 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
| 107 | + | |
107 | 108 |
| |
108 | 109 |
| |
109 | 110 |
| |
| |||
207 | 208 |
| |
208 | 209 |
| |
209 | 210 |
| |
| 211 | + | |
| 212 | + | |
210 | 213 |
| |
211 | 214 |
| |
| 215 | + | |
212 | 216 |
| |
213 | 217 |
| |
214 | 218 |
| |
215 | 219 |
| |
216 | 220 |
| |
217 | 221 |
| |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
218 | 229 |
| |
219 | 230 |
| |
220 | 231 |
| |
221 | 232 |
| |
222 | 233 |
| |
| 234 | + | |
223 | 235 |
| |
224 | 236 |
| |
225 | 237 |
| |
| |||
499 | 511 |
| |
500 | 512 |
| |
501 | 513 |
| |
502 |
| - | |
503 | 514 |
| |
504 | 515 |
| |
505 | 516 |
| |
| |||
556 | 567 |
| |
557 | 568 |
| |
558 | 569 |
| |
559 |
| - | |
| 570 | + | |
560 | 571 |
| |
561 | 572 |
| |
562 | 573 |
| |
| |||
581 | 592 |
| |
582 | 593 |
| |
583 | 594 |
| |
584 |
| - | |
585 | 595 |
| |
586 | 596 |
| |
587 | 597 |
| |
| |||
629 | 639 |
| |
630 | 640 |
| |
631 | 641 |
| |
632 |
| - | |
| 642 | + | |
633 | 643 |
| |
634 | 644 |
| |
635 | 645 |
| |
636 | 646 |
| |
637 | 647 |
| |
638 | 648 |
| |
639 |
| - | |
| 649 | + | |
640 | 650 |
| |
641 | 651 |
| |
642 | 652 |
| |
| |||
670 | 680 |
| |
671 | 681 |
| |
672 | 682 |
| |
673 |
| - | |
| 683 | + | |
674 | 684 |
| |
675 | 685 |
| |
676 | 686 |
| |
| |||
686 | 696 |
| |
687 | 697 |
| |
688 | 698 |
| |
689 |
| - | |
| 699 | + | |
690 | 700 |
| |
691 | 701 |
| |
692 | 702 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1087 | 1087 |
| |
1088 | 1088 |
| |
1089 | 1089 |
| |
| 1090 | + | |
| 1091 | + | |
1090 | 1092 |
| |
1091 | 1093 |
| |
1092 | 1094 |
| |
|
0 commit comments
Comments
(0)