- Notifications
You must be signed in to change notification settings - Fork28
Commita7de3dc
committed
Support multi-stage aggregation.
Aggregate nodes now have two new modes: a "partial" mode where theyoutput the unfinalized transition state, and a "finalize" mode wherethey accept unfinalized transition states rather than individualvalues as input.These new modes are not used anywhere yet, but they will be necessaryfor parallel aggregation. The infrastructure also figures to beuseful for cases where we want to aggregate local data and remotedata via the FDW interface, and want to bring back partial aggregatesfrom the remote side that can then be combined with locally generatedpartial aggregates to produce the final value. It may also be usefuleven when neither FDWs nor parallelism are in play, as explained inthe comments in nodeAgg.c.David Rowley and Simon Riggs, reviewed by KaiGai Kohei, HeikkiLinnakangas, Haribabu Kommi, and me.1 parentc8642d9 commita7de3dc
File tree
21 files changed
+652
-234
lines changed- doc/src/sgml/ref
- src
- backend
- catalog
- commands
- executor
- nodes
- optimizer
- plan
- prep
- parser
- bin/pg_dump
- include
- catalog
- nodes
- optimizer
- parser
- test/regress
- expected
- sql
21 files changed
+652
-234
lines changedLines changed: 14 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
| 30 | + | |
30 | 31 |
| |
31 | 32 |
| |
32 | 33 |
| |
| |||
45 | 46 |
| |
46 | 47 |
| |
47 | 48 |
| |
| 49 | + | |
48 | 50 |
| |
49 | 51 |
| |
50 | 52 |
| |
| |||
58 | 60 |
| |
59 | 61 |
| |
60 | 62 |
| |
| 63 | + | |
61 | 64 |
| |
62 | 65 |
| |
63 | 66 |
| |
| |||
105 | 108 |
| |
106 | 109 |
| |
107 | 110 |
| |
108 |
| - | |
109 |
| - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
110 | 115 |
| |
111 | 116 |
| |
112 | 117 |
| |
113 | 118 |
| |
| 119 | + | |
114 | 120 |
| |
115 | 121 |
| |
116 | 122 |
| |
| |||
127 | 133 |
| |
128 | 134 |
| |
129 | 135 |
| |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
130 | 142 |
| |
131 | 143 |
| |
132 | 144 |
| |
|
Lines changed: 37 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
| 60 | + | |
60 | 61 |
| |
61 | 62 |
| |
62 | 63 |
| |
| |||
77 | 78 |
| |
78 | 79 |
| |
79 | 80 |
| |
| 81 | + | |
80 | 82 |
| |
81 | 83 |
| |
82 | 84 |
| |
| |||
396 | 398 |
| |
397 | 399 |
| |
398 | 400 |
| |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
399 | 425 |
| |
400 | 426 |
| |
401 | 427 |
| |
| |||
567 | 593 |
| |
568 | 594 |
| |
569 | 595 |
| |
| 596 | + | |
570 | 597 |
| |
571 | 598 |
| |
572 | 599 |
| |
| |||
618 | 645 |
| |
619 | 646 |
| |
620 | 647 |
| |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
621 | 657 |
| |
622 | 658 |
| |
623 | 659 |
| |
| |||
659 | 695 |
| |
660 | 696 |
| |
661 | 697 |
| |
662 |
| - | |
| 698 | + | |
663 | 699 |
| |
664 | 700 |
| |
665 | 701 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
| 64 | + | |
64 | 65 |
| |
65 | 66 |
| |
66 | 67 |
| |
| |||
124 | 125 |
| |
125 | 126 |
| |
126 | 127 |
| |
| 128 | + | |
| 129 | + | |
127 | 130 |
| |
128 | 131 |
| |
129 | 132 |
| |
| |||
383 | 386 |
| |
384 | 387 |
| |
385 | 388 |
| |
| 389 | + | |
386 | 390 |
| |
387 | 391 |
| |
388 | 392 |
| |
|
Lines changed: 29 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
909 | 909 |
| |
910 | 910 |
| |
911 | 911 |
| |
912 |
| - | |
913 | 912 |
| |
914 |
| - | |
915 |
| - | |
916 |
| - | |
917 |
| - | |
918 |
| - | |
919 |
| - | |
920 |
| - | |
921 |
| - | |
922 |
| - | |
923 |
| - | |
924 |
| - | |
925 |
| - | |
926 |
| - | |
927 |
| - | |
928 |
| - | |
929 |
| - | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
930 | 942 |
| |
931 | 943 |
| |
932 | 944 |
| |
|
0 commit comments
Comments
(0)