- Notifications
You must be signed in to change notification settings - Fork5
Commitdf700e6
committed
Improve tuplesort.c to support variable merge order. The original coding
with fixed merge order (fixed number of "tapes") was based on obsoleteassumptions, namely that tape drives are expensive. Since our "tapes"are really just a couple of buffers, we can have a lot of them givenadequate workspace. This allows reduction of the number of merge passeswith consequent savings of I/O during large sorts.Simon Riggs with some rework by Tom Lane1 parent85c0eac commitdf700e6
File tree
3 files changed
+169
-63
lines changed- src
- backend
- optimizer/path
- utils/sort
- include/utils
3 files changed
+169
-63
lines changedLines changed: 12 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 |
| - | |
| 52 | + | |
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
| |||
70 | 70 |
| |
71 | 71 |
| |
72 | 72 |
| |
| 73 | + | |
73 | 74 |
| |
74 | 75 |
| |
75 | 76 |
| |
76 |
| - | |
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
| |||
767 | 767 |
| |
768 | 768 |
| |
769 | 769 |
| |
770 |
| - | |
771 |
| - | |
772 |
| - | |
773 |
| - | |
774 |
| - | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
775 | 774 |
| |
776 | 775 |
| |
777 | 776 |
| |
| |||
824 | 823 |
| |
825 | 824 |
| |
826 | 825 |
| |
827 |
| - | |
| 826 | + | |
| 827 | + | |
828 | 828 |
| |
829 | 829 |
| |
830 |
| - | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
831 | 834 |
| |
832 | 835 |
| |
833 | 836 |
| |
|
0 commit comments
Comments
(0)