forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3bd909b
committed
Add a Gather executor node.
A Gather executor node runs any number of copies of a plan in an equalnumber of workers and merges all of the results into a single tuplestream. It can also run the plan itself, if the workers areunavailable or haven't started up yet. It is intended to work withthe Partial Seq Scan node which will be added in future commits.It could also be used to implement parallel query of a different sortby itself, without help from Partial Seq Scan, if the single_copy modeis used. In that mode, a worker executes the plan, and the parallelleader does not, merely collecting the worker's results. So, a Gathernode could be inserted into a plan to split the execution of that planacross two processes. Nested Gather nodes aren't currently supported,but we might want to add support for that in the future.There's nothing in the planner to actually generate Gather nodes yet,so it's not quite time to break out the champagne. But we're gettingclose.Amit Kapila. Some designs suggestions were provided by me, and I alsoreviewed the patch. Single-copy mode, documentation, and other minorchanges also by me.1 parent227d57f commit3bd909b
File tree
26 files changed
+709
-8
lines changed- doc/src/sgml
- src
- backend
- commands
- executor
- nodes
- optimizer
- path
- plan
- util
- utils/misc
- include
- executor
- nodes
- optimizer
- tools/pgindent
26 files changed
+709
-8
lines changedLines changed: 46 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1928 | 1928 |
| |
1929 | 1929 |
| |
1930 | 1930 |
| |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
1931 | 1947 |
| |
1932 | 1948 |
| |
1933 | 1949 |
| |
| |||
3398 | 3414 |
| |
3399 | 3415 |
| |
3400 | 3416 |
| |
| 3417 | + | |
| 3418 | + | |
| 3419 | + | |
| 3420 | + | |
| 3421 | + | |
| 3422 | + | |
| 3423 | + | |
| 3424 | + | |
| 3425 | + | |
| 3426 | + | |
| 3427 | + | |
| 3428 | + | |
| 3429 | + | |
| 3430 | + | |
| 3431 | + | |
| 3432 | + | |
| 3433 | + | |
| 3434 | + | |
| 3435 | + | |
| 3436 | + | |
| 3437 | + | |
| 3438 | + | |
| 3439 | + | |
| 3440 | + | |
| 3441 | + | |
| 3442 | + | |
| 3443 | + | |
| 3444 | + | |
| 3445 | + | |
| 3446 | + | |
3401 | 3447 |
| |
3402 | 3448 |
| |
3403 | 3449 |
| |
|
Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
853 | 853 |
| |
854 | 854 |
| |
855 | 855 |
| |
| 856 | + | |
| 857 | + | |
| 858 | + | |
856 | 859 |
| |
857 | 860 |
| |
858 | 861 |
| |
| |||
1276 | 1279 |
| |
1277 | 1280 |
| |
1278 | 1281 |
| |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
1279 | 1298 |
| |
1280 | 1299 |
| |
1281 | 1300 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
21 |
| - | |
| 20 | + | |
| 21 | + | |
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
| 27 | + | |
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
| |||
160 | 161 |
| |
161 | 162 |
| |
162 | 163 |
| |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
163 | 168 |
| |
164 | 169 |
| |
165 | 170 |
| |
| |||
467 | 472 |
| |
468 | 473 |
| |
469 | 474 |
| |
| 475 | + | |
| 476 | + | |
| 477 | + | |
470 | 478 |
| |
471 | 479 |
| |
472 | 480 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
347 | 347 |
| |
348 | 348 |
| |
349 | 349 |
| |
| 350 | + | |
| 351 | + | |
| 352 | + | |
350 | 353 |
| |
351 | 354 |
| |
352 | 355 |
| |
|
Lines changed: 8 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 |
| - | |
| 74 | + | |
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
| |||
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
91 |
| - | |
| 91 | + | |
92 | 92 |
| |
93 | 93 |
| |
94 | 94 |
| |
| |||
125 | 125 |
| |
126 | 126 |
| |
127 | 127 |
| |
128 |
| - | |
| 128 | + | |
129 | 129 |
| |
130 | 130 |
| |
131 | 131 |
| |
132 | 132 |
| |
133 | 133 |
| |
134 |
| - | |
| 134 | + | |
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
| |||
271 | 271 |
| |
272 | 272 |
| |
273 | 273 |
| |
274 |
| - | |
| 274 | + | |
275 | 275 |
| |
276 | 276 |
| |
277 | 277 |
| |
| |||
568 | 568 |
| |
569 | 569 |
| |
570 | 570 |
| |
571 |
| - | |
572 | 571 |
| |
573 | 572 |
| |
574 | 573 |
| |
| |||
579 | 578 |
| |
580 | 579 |
| |
581 | 580 |
| |
| 581 | + | |
| 582 | + | |
| 583 | + | |
582 | 584 |
| |
583 | 585 |
| |
584 | 586 |
| |
|
Lines changed: 46 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
100 | 100 |
| |
101 | 101 |
| |
102 | 102 |
| |
| 103 | + | |
103 | 104 |
| |
104 | 105 |
| |
105 | 106 |
| |
| |||
113 | 114 |
| |
114 | 115 |
| |
115 | 116 |
| |
| 117 | + | |
116 | 118 |
| |
117 | 119 |
| |
118 | 120 |
| |
| |||
307 | 309 |
| |
308 | 310 |
| |
309 | 311 |
| |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
310 | 317 |
| |
311 | 318 |
| |
312 | 319 |
| |
| |||
504 | 511 |
| |
505 | 512 |
| |
506 | 513 |
| |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
507 | 518 |
| |
508 | 519 |
| |
509 | 520 |
| |
| |||
658 | 669 |
| |
659 | 670 |
| |
660 | 671 |
| |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
661 | 676 |
| |
662 | 677 |
| |
663 | 678 |
| |
| |||
769 | 784 |
| |
770 | 785 |
| |
771 | 786 |
| |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + |
0 commit comments
Comments
(0)