- Notifications
You must be signed in to change notification settings - Fork5
Commitfb27643
committed
Suppress useless searches for unused line pointers in PageAddItem. To do
this, add a 16-bit "flags" field to page headers by stealing some bits frompd_tli. We use one flag bit as a hint to indicate whether there are anyunused line pointers; the remaining 15 are available for future use.This is a cut-down form of an idea proposed by Hiroki Kataoka in July 2005.At the time it was rejected because the original patch increased the size ofpage headers and it wasn't clear that the benefit outweighed the distributedcost. The flag-bit approach gets most of the benefit without requiring anincrease in the page header size.Heikki Linnakangas and Tom Lane1 parent44f72c6 commitfb27643
File tree
4 files changed
+82
-25
lines changed- doc/src/sgml
- src
- backend/storage/page
- include
- catalog
- storage
4 files changed
+82
-25
lines changedLines changed: 16 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
427 | 427 |
| |
428 | 428 |
| |
429 | 429 |
| |
430 |
| - | |
431 |
| - | |
| 430 | + | |
| 431 | + | |
432 | 432 |
| |
433 | 433 |
| |
434 | 434 |
| |
| |||
437 | 437 |
| |
438 | 438 |
| |
439 | 439 |
| |
440 |
| - | |
| 440 | + | |
| 441 | + | |
441 | 442 |
| |
442 | 443 |
| |
443 | 444 |
| |
444 |
| - | |
445 |
| - | |
| 445 | + | |
| 446 | + | |
446 | 447 |
| |
447 | 448 |
| |
448 | 449 |
| |
| |||
470 | 471 |
| |
471 | 472 |
| |
472 | 473 |
| |
473 |
| - | |
474 |
| - | |
475 |
| - | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
476 | 483 |
| |
477 | 484 |
| |
478 | 485 |
| |
|
Lines changed: 29 additions & 8 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 |
| |
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
| 42 | + | |
42 | 43 |
| |
43 | 44 |
| |
44 | 45 |
| |
| |||
73 | 74 |
| |
74 | 75 |
| |
75 | 76 |
| |
| 77 | + | |
76 | 78 |
| |
77 | 79 |
| |
78 | 80 |
| |
| |||
165 | 167 |
| |
166 | 168 |
| |
167 | 169 |
| |
168 |
| - | |
169 |
| - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
170 | 187 |
| |
171 |
| - | |
172 |
| - | |
173 |
| - | |
| 188 | + | |
| 189 | + | |
174 | 190 |
| |
175 |
| - | |
176 | 191 |
| |
177 | 192 |
| |
178 | 193 |
| |
| |||
413 | 428 |
| |
414 | 429 |
| |
415 | 430 |
| |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
416 | 437 |
| |
417 | 438 |
| |
418 | 439 |
| |
419 | 440 |
| |
420 | 441 |
| |
421 | 442 |
| |
422 |
| - | |
| 443 | + | |
423 | 444 |
| |
424 | 445 |
| |
425 | 446 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 |
| - | |
| 56 | + | |
57 | 57 |
| |
58 | 58 |
|
Lines changed: 35 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
| 93 | + | |
93 | 94 |
| |
94 | 95 |
| |
95 | 96 |
| |
| |||
98 | 99 |
| |
99 | 100 |
| |
100 | 101 |
| |
101 |
| - | |
102 |
| - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
103 | 105 |
| |
104 | 106 |
| |
105 | 107 |
| |
| |||
119 | 121 |
| |
120 | 122 |
| |
121 | 123 |
| |
122 |
| - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
123 | 127 |
| |
124 | 128 |
| |
125 | 129 |
| |
| |||
129 | 133 |
| |
130 | 134 |
| |
131 | 135 |
| |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
132 | 148 |
| |
133 | 149 |
| |
134 | 150 |
| |
135 | 151 |
| |
136 | 152 |
| |
137 |
| - | |
| 153 | + | |
| 154 | + | |
138 | 155 |
| |
139 | 156 |
| |
140 | 157 |
| |
| |||
299 | 316 |
| |
300 | 317 |
| |
301 | 318 |
| |
| 319 | + | |
| 320 | + | |
| 321 | + | |
302 | 322 |
| |
303 | 323 |
| |
304 | 324 |
| |
305 | 325 |
| |
306 | 326 |
| |
| 327 | + | |
307 | 328 |
| |
308 | 329 |
| |
309 | 330 |
| |
310 |
| - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
311 | 340 |
| |
312 | 341 |
| |
313 | 342 |
| |
|
0 commit comments
Comments
(0)