- Notifications
You must be signed in to change notification settings - Fork28
Commit9da0cc3
committed
Support parallel btree index builds.
To make this work, tuplesort.c and logtape.c must also supportparallelism, so this patch adds that infrastructure and then appliesit to the particular case of parallel btree index builds. Testingto date shows that this can often be 2-3x faster than a serialindex build.The model for deciding how many workers to use is fairly primitiveat present, but it's better than not having the feature. We canrefine it as we get more experience.Peter Geoghegan with some help from Rushabh Lathia. While HeikkiLinnakangas is not an author of this patch, he wrote other patcheswithout which this feature would not have been possible, andtherefore the release notes should possibly credit him as an authorof this feature. Reviewed by Claudio Freire, Heikki Linnakangas,Thomas Munro, Tels, Amit Kapila, me.Discussion:http://postgr.es/m/CAM3SWZQKM=Pzc=CAHzRixKjp2eO5Q0Jg1SoFQqeXFQ647JiwqQ@mail.gmail.comDiscussion:http://postgr.es/m/CAH2-Wz=AxWqDoVvGU7dq856S4r6sJAj6DBn7VMtigkB33N5eyg@mail.gmail.com1 parent9aef173 commit9da0cc3
File tree
51 files changed
+2237
-361
lines changed- contrib/bloom
- doc/src/sgml
- ref
- src
- backend
- access
- brin
- gin
- gist
- hash
- heap
- nbtree
- spgist
- transam
- bootstrap
- catalog
- commands
- executor
- optimizer
- path
- plan
- postmaster
- storage/file
- utils
- adt
- init
- misc
- sort
- include
- access
- catalog
- nodes
- optimizer
- storage
- utils
- tools/pgindent
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
51 files changed
+2237
-361
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
138 |
| - | |
| 138 | + | |
| 139 | + | |
139 | 140 |
| |
140 | 141 |
| |
141 | 142 |
| |
|
Lines changed: 42 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2022 | 2022 |
| |
2023 | 2023 |
| |
2024 | 2024 |
| |
2025 |
| - | |
| 2025 | + | |
| 2026 | + | |
2026 | 2027 |
| |
2027 | 2028 |
| |
2028 | 2029 |
| |
| |||
2070 | 2071 |
| |
2071 | 2072 |
| |
2072 | 2073 |
| |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
2073 | 2112 |
| |
2074 | 2113 |
| |
2075 | 2114 |
| |
| |||
2079 | 2118 |
| |
2080 | 2119 |
| |
2081 | 2120 |
| |
2082 |
| - | |
| 2121 | + | |
2083 | 2122 |
| |
| 2123 | + | |
2084 | 2124 |
| |
2085 | 2125 |
| |
2086 | 2126 |
| |
|
Lines changed: 9 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1263 | 1263 |
| |
1264 | 1264 |
| |
1265 | 1265 |
| |
1266 |
| - | |
| 1266 | + | |
1267 | 1267 |
| |
1268 | 1268 |
| |
1269 | 1269 |
| |
| |||
1371 | 1371 |
| |
1372 | 1372 |
| |
1373 | 1373 |
| |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
1374 | 1378 |
| |
1375 | 1379 |
| |
1376 | 1380 |
| |
| |||
3900 | 3904 |
| |
3901 | 3905 |
| |
3902 | 3906 |
| |
3903 |
| - | |
| 3907 | + | |
3904 | 3908 |
| |
3905 | 3909 |
| |
3906 | 3910 |
| |
3907 | 3911 |
| |
3908 | 3912 |
| |
3909 |
| - | |
| 3913 | + | |
| 3914 | + | |
| 3915 | + | |
3910 | 3916 |
| |
3911 | 3917 |
| |
3912 | 3918 |
| |
|
Lines changed: 58 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
599 | 599 |
| |
600 | 600 |
| |
601 | 601 |
| |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
602 | 660 |
| |
603 | 661 |
| |
604 | 662 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1228 | 1228 |
| |
1229 | 1229 |
| |
1230 | 1230 |
| |
1231 |
| - | |
1232 |
| - | |
| 1231 | + | |
| 1232 | + | |
1233 | 1233 |
| |
1234 | 1234 |
| |
1235 | 1235 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
706 | 706 |
| |
707 | 707 |
| |
708 | 708 |
| |
709 |
| - | |
| 709 | + | |
710 | 710 |
| |
711 | 711 |
| |
712 | 712 |
| |
| |||
1205 | 1205 |
| |
1206 | 1206 |
| |
1207 | 1207 |
| |
1208 |
| - | |
| 1208 | + | |
1209 | 1209 |
| |
1210 | 1210 |
| |
1211 | 1211 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
391 | 391 |
| |
392 | 392 |
| |
393 | 393 |
| |
394 |
| - | |
| 394 | + | |
395 | 395 |
| |
396 | 396 |
| |
397 | 397 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
203 | 203 |
| |
204 | 204 |
| |
205 | 205 |
| |
206 |
| - | |
| 206 | + | |
207 | 207 |
| |
208 | 208 |
| |
209 | 209 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
159 | 159 |
| |
160 | 160 |
| |
161 | 161 |
| |
162 |
| - | |
| 162 | + | |
163 | 163 |
| |
164 | 164 |
| |
165 | 165 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
| 85 | + | |
85 | 86 |
| |
86 | 87 |
| |
87 | 88 |
| |
|
Lines changed: 24 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1627 | 1627 |
| |
1628 | 1628 |
| |
1629 | 1629 |
| |
1630 |
| - | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
1631 | 1640 |
| |
1632 | 1641 |
| |
1633 | 1642 |
| |
| |||
1655 | 1664 |
| |
1656 | 1665 |
| |
1657 | 1666 |
| |
1658 |
| - | |
1659 |
| - | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
1660 | 1679 |
| |
1661 | 1680 |
| |
1662 |
| - | |
| 1681 | + | |
| 1682 | + | |
1663 | 1683 |
| |
1664 | 1684 |
| |
1665 | 1685 |
| |
|
0 commit comments
Comments
(0)