- Notifications
You must be signed in to change notification settings - Fork5
Commitf25d07d
committed
Fix lossy KNN GiST when ordering operator returns non-float8 value.
KNN GiST with recheck flag should return to executor the same type as orderingoperator, GiST detects this type by looking to return type of function whichimplements ordering operator. But occasionally detecting code works afterreplacing ordering operator function to distance support function.Distance support function always returns float8, so, detecting code get float8instead of actual return type of ordering operator.Built-in opclasses don't have ordering operator which doesn't returnnon-float8 value, so, tests are impossible here, at least now.Backpatch to 9.5 where lozzy KNN was introduced.Author: Alexander KorotkovReport by: Artur Zakirov1 parent7191ce8 commitf25d07d
1 file changed
+10
-2
lines changedLines changed: 10 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
229 | 229 |
| |
230 | 230 |
| |
231 | 231 |
| |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
232 | 236 |
| |
233 | 237 |
| |
234 | 238 |
| |
| |||
284 | 288 |
| |
285 | 289 |
| |
286 | 290 |
| |
287 |
| - | |
288 |
| - | |
289 | 291 |
| |
290 | 292 |
| |
291 | 293 |
| |
| |||
300 | 302 |
| |
301 | 303 |
| |
302 | 304 |
| |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
303 | 311 |
| |
304 | 312 |
| |
305 | 313 |
| |
|
0 commit comments
Comments
(0)