forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcdd5178
committed
Extend the MinimalTuple concept to tuplesort.c, thereby reducing the
per-tuple space overhead for sorts in memory. I chose to replace theprevious patch that tried to write out the bare minimum amount of datawhen sorting on disk; instead, just dump the MinimalTuples as-is. Thiswastes 3 to 10 bytes per tuple depending on architecture and null-bitmaplength, but the simplification in the writetup/readtup routines seemsworth it.1 parente99507e commitcdd5178
File tree
4 files changed
+139
-152
lines changed- src
- backend
- access/nbtree
- executor
- utils/sort
- include/utils
4 files changed
+139
-152
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
59 |
| - | |
| 59 | + | |
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
| |||
179 | 179 |
| |
180 | 180 |
| |
181 | 181 |
| |
182 |
| - | |
| 182 | + | |
183 | 183 |
| |
184 | 184 |
| |
185 | 185 |
| |
|
Lines changed: 6 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 |
| - | |
45 | 44 |
| |
46 |
| - | |
47 | 45 |
| |
48 | 46 |
| |
49 | 47 |
| |
| |||
103 | 101 |
| |
104 | 102 |
| |
105 | 103 |
| |
106 |
| - | |
107 |
| - | |
| 104 | + | |
108 | 105 |
| |
109 | 106 |
| |
110 | 107 |
| |
| |||
131 | 128 |
| |
132 | 129 |
| |
133 | 130 |
| |
134 |
| - | |
135 |
| - | |
136 |
| - | |
137 |
| - | |
138 | 131 |
| |
139 |
| - | |
140 |
| - | |
141 |
| - | |
142 |
| - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
143 | 136 |
| |
144 | 137 |
| |
145 | 138 |
| |
|
0 commit comments
Comments
(0)