forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit22d946b

Richard Guo
Consider materializing the cheapest inner path in parallel nestloop
When generating non-parallel nestloop paths for each available outerpath, we always consider materializing the cheapest inner path iffeasible. Similarly, in this patch, we also consider materializingthe cheapest inner path when building partial nestloop paths. Thisapproach potentially reduces the need to rescan the inner side of apartial nestloop path for each outer tuple.Author: Tender WangReviewed-by: Richard Guo, Robert Haas, David Rowley, Alena RybakinaReviewed-by: Tomasz Rybak, Paul Jungwirth, Yuki FujiiDiscussion:https://postgr.es/m/CAHewXNkPmtEXNfVQMou_7NqQmFABca9f4etjBtdbbm0ZKDmWvw@mail.gmail.com1 parent72c0b24 commit22d946b
File tree
3 files changed
+65
-0
lines changed- src
- backend/optimizer/path
- test/regress
- expected
- sql
3 files changed
+65
-0
lines changedLines changed: 25 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2021 | 2021 |
| |
2022 | 2022 |
| |
2023 | 2023 |
| |
| 2024 | + | |
| 2025 | + | |
2024 | 2026 |
| |
2025 | 2027 |
| |
2026 | 2028 |
| |
2027 | 2029 |
| |
2028 | 2030 |
| |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
2029 | 2049 |
| |
2030 | 2050 |
| |
2031 | 2051 |
| |
| |||
2082 | 2102 |
| |
2083 | 2103 |
| |
2084 | 2104 |
| |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
2085 | 2110 |
| |
2086 | 2111 |
| |
2087 | 2112 |
| |
|
Lines changed: 30 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
653 | 653 |
| |
654 | 654 |
| |
655 | 655 |
| |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
656 | 686 |
| |
657 | 687 |
| |
658 | 688 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
266 | 266 |
| |
267 | 267 |
| |
268 | 268 |
| |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
269 | 279 |
| |
270 | 280 |
| |
271 | 281 |
| |
|
0 commit comments
Comments
(0)