forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd17b6df
committed
Fix knn-GiST queue comparison function to return heap tuples first.
The part of the comparison function that was supposed to keep heap tuplesahead of index items was backwards. It would not lead to incorrect results,but it is more efficient to return heap tuples first, before scanning moreindex pages, when both have the same distance.Alexander Korotkov1 parent2e105de commitd17b6df
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 |
| - | |
45 |
| - | |
46 | 44 |
| |
| 45 | + | |
| 46 | + | |
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
|
0 commit comments
Comments
(0)