forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd583f10
committed
Create core infrastructure for KNNGIST.
This is a heavily revised version of builtin_knngist_core-0.9. Theordering operators are no longer mixed in with actual quals, which wouldhave confused not only humans but significant parts of the planner.Instead, ordering operators are carried separately throughout planning andexecution.Since the API for ambeginscan and amrescan functions had to be changedanyway, this commit takes the opportunity to rationalize that a bit.RelationGetIndexScan no longer forces a premature index_rescan call;instead, callers of index_beginscan must call index_rescan too. Aside frommaking the AM-side initialization logic a bit less peculiar, this has theadvantage that we do not make a useless extra am_rescan call when there areruntime key values. AMs formerly could not assume that the key valuespassed to amrescan were actually valid; now they can.Teodor Sigaev and Tom Lane1 parentd7e5d15 commitd583f10
File tree
40 files changed
+790
-314
lines changed- doc/src/sgml
- src
- backend
- access
- gin
- gist
- hash
- index
- nbtree
- commands
- executor
- nodes
- optimizer
- path
- plan
- util
- utils
- adt
- cache
- include
- access
- catalog
- executor
- nodes
- optimizer
- utils
40 files changed
+790
-314
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
510 | 510 |
| |
511 | 511 |
| |
512 | 512 |
| |
513 |
| - | |
| 513 | + | |
514 | 514 |
| |
515 | 515 |
| |
516 | 516 |
| |
| |||
531 | 531 |
| |
532 | 532 |
| |
533 | 533 |
| |
534 |
| - | |
| 534 | + | |
535 | 535 |
| |
536 | 536 |
| |
537 | 537 |
| |
538 | 538 |
| |
539 | 539 |
| |
540 | 540 |
| |
541 |
| - | |
| 541 | + | |
542 | 542 |
| |
543 | 543 |
| |
544 | 544 |
| |
|
Lines changed: 45 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
268 | 268 |
| |
269 | 269 |
| |
270 | 270 |
| |
| 271 | + | |
271 | 272 |
| |
272 | 273 |
| |
273 | 274 |
| |
| |||
318 | 319 |
| |
319 | 320 |
| |
320 | 321 |
| |
321 |
| - | |
| 322 | + | |
322 | 323 |
| |
323 |
| - | |
324 |
| - | |
325 |
| - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
326 | 330 |
| |
327 | 331 |
| |
328 |
| - | |
| 332 | + | |
| 333 | + | |
329 | 334 |
| |
330 | 335 |
| |
331 | 336 |
| |
332 | 337 |
| |
333 | 338 |
| |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
334 | 358 |
| |
335 | 359 |
| |
336 | 360 |
| |
| |||
393 | 417 |
| |
394 | 418 |
| |
395 | 419 |
| |
396 |
| - | |
397 |
| - | |
398 |
| - | |
399 |
| - | |
400 |
| - | |
401 |
| - | |
402 |
| - | |
403 |
| - | |
404 |
| - | |
405 |
| - | |
406 |
| - | |
407 |
| - | |
408 |
| - | |
409 |
| - | |
410 |
| - | |
411 |
| - | |
412 | 420 |
| |
413 | 421 |
| |
414 | 422 |
| |
| |||
820 | 828 |
| |
821 | 829 |
| |
822 | 830 |
| |
823 |
| - | |
824 |
| - | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
825 | 834 |
| |
826 | 835 |
| |
827 | 836 |
| |
| |||
839 | 848 |
| |
840 | 849 |
| |
841 | 850 |
| |
| 851 | + | |
842 | 852 |
| |
843 | 853 |
| |
844 | 854 |
| |
845 | 855 |
| |
846 | 856 |
| |
847 | 857 |
| |
848 | 858 |
| |
849 |
| - | |
| 859 | + | |
850 | 860 |
| |
851 | 861 |
| |
852 | 862 |
| |
| |||
873 | 883 |
| |
874 | 884 |
| |
875 | 885 |
| |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
876 | 897 |
| |
877 | 898 |
| |
878 | 899 |
| |
|
Lines changed: 26 additions & 29 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
30 |
| - | |
| 29 | + | |
| 30 | + | |
31 | 31 |
| |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
32 | 49 |
| |
33 |
| - | |
| 50 | + | |
34 | 51 |
| |
35 | 52 |
| |
36 | 53 |
| |
| |||
241 | 258 |
| |
242 | 259 |
| |
243 | 260 |
| |
244 |
| - | |
245 |
| - | |
246 |
| - | |
247 |
| - | |
248 |
| - | |
249 |
| - | |
250 |
| - | |
251 |
| - | |
252 |
| - | |
253 |
| - | |
254 |
| - | |
255 |
| - | |
256 |
| - | |
257 |
| - | |
258 |
| - | |
259 |
| - | |
260 |
| - | |
261 |
| - | |
262 |
| - | |
263 |
| - | |
| 261 | + | |
| 262 | + | |
264 | 263 |
| |
| 264 | + | |
265 | 265 |
| |
266 | 266 |
| |
267 | 267 |
| |
| |||
280 | 280 |
| |
281 | 281 |
| |
282 | 282 |
| |
283 |
| - | |
284 |
| - | |
285 |
| - | |
| 283 | + | |
286 | 284 |
| |
287 |
| - | |
| 285 | + | |
288 | 286 |
| |
289 |
| - | |
290 |
| - | |
| 287 | + | |
291 | 288 |
| |
292 | 289 |
| |
293 | 290 |
| |
|
Lines changed: 34 additions & 40 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 |
| - | |
| 31 | + | |
32 | 32 |
| |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
33 | 47 |
| |
34 |
| - | |
| 48 | + | |
35 | 49 |
| |
36 | 50 |
| |
37 | 51 |
| |
| |||
41 | 55 |
| |
42 | 56 |
| |
43 | 57 |
| |
44 |
| - | |
| 58 | + | |
| 59 | + | |
45 | 60 |
| |
46 | 61 |
| |
47 |
| - | |
48 |
| - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
49 | 67 |
| |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
| 68 | + | |
66 | 69 |
| |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 | 70 |
| |
72 | 71 |
| |
73 | 72 |
| |
| |||
130 | 129 |
| |
131 | 130 |
| |
132 | 131 |
| |
133 |
| - | |
134 |
| - | |
135 |
| - | |
136 |
| - | |
137 |
| - | |
138 |
| - | |
139 |
| - | |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 |
| - | |
144 |
| - | |
145 |
| - | |
146 |
| - | |
147 |
| - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
148 | 142 |
| |
149 | 143 |
| |
150 | 144 |
| |
|
0 commit comments
Comments
(0)