forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitab72716
committed
Support Parallel Append plan nodes.
When we create an Append node, we can spread out the workers over thesubplans instead of piling on to each subplan one at a time, whichshould typically be a bit more efficient, both because the startupcost of any plan executed entirely by one worker is paid only once andalso because of reduced contention. We can also construct Appendplans using a mix of partial and non-partial subplans, which may allowfor parallelism in places that otherwise couldn't support it.Unfortunately, this patch doesn't handle the important case ofparallelizing UNION ALL by running each branch in a separate worker;the executor infrastructure is added here, but more planner work isneeded.Amit Khandekar, Robert Haas, Amul Sul, reviewed and tested byAshutosh Bapat, Amit Langote, Rafia Sabih, Amit Kapila, andRajkumar Raghuwanshi.Discussion:http://postgr.es/m/CAJ3gD9dy0K_E8r727heqXoBmWZ83HwLFwdcaSSmBQ1+S+vRuUQ@mail.gmail.com1 parent8097d18 commitab72716
File tree
31 files changed
+959
-129
lines changed- doc/src/sgml
- src
- backend
- executor
- nodes
- optimizer
- path
- plan
- prep
- util
- storage/lmgr
- utils/misc
- include
- executor
- nodes
- optimizer
- storage
- test/regress
- expected
- sql
31 files changed
+959
-129
lines changedLines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3633 | 3633 |
| |
3634 | 3634 |
| |
3635 | 3635 |
| |
| 3636 | + | |
| 3637 | + | |
| 3638 | + | |
| 3639 | + | |
| 3640 | + | |
| 3641 | + | |
| 3642 | + | |
| 3643 | + | |
| 3644 | + | |
| 3645 | + | |
| 3646 | + | |
| 3647 | + | |
| 3648 | + | |
| 3649 | + | |
3636 | 3650 |
| |
3637 | 3651 |
| |
3638 | 3652 |
| |
|
Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
845 | 845 |
| |
846 | 846 |
| |
847 | 847 |
| |
848 |
| - | |
| 848 | + | |
849 | 849 |
| |
850 | 850 |
| |
851 | 851 |
| |
| |||
1116 | 1116 |
| |
1117 | 1117 |
| |
1118 | 1118 |
| |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
1119 | 1124 |
| |
1120 | 1125 |
| |
1121 | 1126 |
| |
|
Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
| |||
250 | 251 |
| |
251 | 252 |
| |
252 | 253 |
| |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
253 | 259 |
| |
254 | 260 |
| |
255 | 261 |
| |
| |||
453 | 459 |
| |
454 | 460 |
| |
455 | 461 |
| |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
456 | 467 |
| |
457 | 468 |
| |
458 | 469 |
| |
| |||
884 | 895 |
| |
885 | 896 |
| |
886 | 897 |
| |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
887 | 902 |
| |
888 | 903 |
| |
889 | 904 |
| |
| |||
1194 | 1209 |
| |
1195 | 1210 |
| |
1196 | 1211 |
| |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
1197 | 1216 |
| |
1198 | 1217 |
| |
1199 | 1218 |
| |
|
0 commit comments
Comments
(0)