forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit77bae39
committed
Adjust tuplesort API to have bitwise option flags
This replaces the bool flag for randomAccess. An upcoming patch requiresadding another option, so instead of breaking the API for that, thenbreaking it again one day if we add more options, let's just break itonce. Any boolean options we add in the future will just make use of anunused bit in the flags.Any extensions making use of tuplesorts will need to update their codeto pass TUPLESORT_RANDOMACCESS instead of true for randomAccess.TUPLESORT_NONE can be used for a set of empty options.Author: David RowleyReviewed-by: Justin PryzbyDiscussion:https://postgr.es/m/CAApHDvoH4ASzsAOyHcxkuY01Qf%2B%2B8JJ0paw%2B03dk%2BW25tQEcNQ%40mail.gmail.com1 parent1b0d9aa commit77bae39
File tree
11 files changed
+99
-73
lines changed- src
- backend
- access
- gist
- hash
- heap
- nbtree
- catalog
- executor
- utils
- adt
- sort
- include/utils
11 files changed
+99
-73
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
271 | 271 |
| |
272 | 272 |
| |
273 | 273 |
| |
274 |
| - | |
| 274 | + | |
275 | 275 |
| |
276 | 276 |
| |
277 | 277 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
86 | 86 |
| |
87 | 87 |
| |
88 | 88 |
| |
89 |
| - | |
| 89 | + | |
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
726 | 726 |
| |
727 | 727 |
| |
728 | 728 |
| |
729 |
| - | |
| 729 | + | |
730 | 730 |
| |
731 | 731 |
| |
732 | 732 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
436 | 436 |
| |
437 | 437 |
| |
438 | 438 |
| |
439 |
| - | |
| 439 | + | |
440 | 440 |
| |
441 | 441 |
| |
442 | 442 |
| |
| |||
475 | 475 |
| |
476 | 476 |
| |
477 | 477 |
| |
478 |
| - | |
| 478 | + | |
479 | 479 |
| |
480 | 480 |
| |
481 | 481 |
| |
| |||
1939 | 1939 |
| |
1940 | 1940 |
| |
1941 | 1941 |
| |
1942 |
| - | |
| 1942 | + | |
1943 | 1943 |
| |
1944 | 1944 |
| |
1945 | 1945 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3364 | 3364 |
| |
3365 | 3365 |
| |
3366 | 3366 |
| |
3367 |
| - | |
| 3367 | + | |
3368 | 3368 |
| |
3369 | 3369 |
| |
3370 | 3370 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
530 | 530 |
| |
531 | 531 |
| |
532 | 532 |
| |
533 |
| - | |
| 533 | + | |
534 | 534 |
| |
535 | 535 |
| |
536 | 536 |
| |
| |||
607 | 607 |
| |
608 | 608 |
| |
609 | 609 |
| |
610 |
| - | |
| 610 | + | |
611 | 611 |
| |
612 | 612 |
| |
613 | 613 |
| |
| |||
617 | 617 |
| |
618 | 618 |
| |
619 | 619 |
| |
620 |
| - | |
| 620 | + | |
621 | 621 |
| |
622 | 622 |
| |
623 | 623 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
315 | 315 |
| |
316 | 316 |
| |
317 | 317 |
| |
318 |
| - | |
| 318 | + | |
319 | 319 |
| |
320 | 320 |
| |
321 | 321 |
| |
| |||
616 | 616 |
| |
617 | 617 |
| |
618 | 618 |
| |
619 |
| - | |
| 619 | + | |
620 | 620 |
| |
621 | 621 |
| |
622 | 622 |
| |
|
Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
| 80 | + | |
80 | 81 |
| |
81 | 82 |
| |
82 | 83 |
| |
| |||
96 | 97 |
| |
97 | 98 |
| |
98 | 99 |
| |
| 100 | + | |
| 101 | + | |
| 102 | + | |
99 | 103 |
| |
100 | 104 |
| |
101 | 105 |
| |
102 | 106 |
| |
103 | 107 |
| |
104 | 108 |
| |
105 | 109 |
| |
106 |
| - | |
| 110 | + | |
107 | 111 |
| |
108 | 112 |
| |
109 | 113 |
| |
| |||
113 | 117 |
| |
114 | 118 |
| |
115 | 119 |
| |
116 |
| - | |
| 120 | + | |
117 | 121 |
| |
118 | 122 |
| |
119 | 123 |
| |
|
Lines changed: 8 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
118 | 118 |
| |
119 | 119 |
| |
120 | 120 |
| |
| 121 | + | |
121 | 122 |
| |
122 | 123 |
| |
123 | 124 |
| |
| |||
283 | 284 |
| |
284 | 285 |
| |
285 | 286 |
| |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
286 | 292 |
| |
287 | 293 |
| |
288 | 294 |
| |
| |||
295 | 301 |
| |
296 | 302 |
| |
297 | 303 |
| |
298 |
| - | |
| 304 | + | |
299 | 305 |
| |
300 | 306 |
| |
301 | 307 |
| |
302 | 308 |
| |
303 | 309 |
| |
304 | 310 |
| |
305 | 311 |
| |
306 |
| - | |
| 312 | + | |
307 | 313 |
| |
308 | 314 |
| |
309 | 315 |
| |
|
0 commit comments
Comments
(0)