forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbc67f41
committed
Fix handling Inf and Nan values in GiST pairing heap comparator
Previously plain float comparison was used in GiST pairing heap. Suchcomparison doesn't provide proper ordering for value sets containing Inf and Nanvalues. This commit fixes that by usage of float8_cmp_internal(). Note, thereis remaining problem with NULL distances, which are represented as Inf inpairing heap. It would be fixes in subsequent commit.Backpatch to all supported versions.Reported-by: Andrey BorodinDiscussion:https://postgr.es/m/CAPpHfdsNvNdA0DBS%2BwMpFrgwT6C3-q50sFVGLSiuWnV3FqOJuQ%40mail.gmail.comAuthor: Alexander KorotkovReviewed-by: Heikki LinnakangasBackpatch-through: 9.41 parentb6d72dd commitbc67f41
File tree
2 files changed
+10
-7
lines changed- src
- backend/access/gist
- test/regress/expected
2 files changed
+10
-7
lines changedLines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| 20 | + | |
20 | 21 |
| |
21 | 22 |
| |
22 | 23 |
| |
| |||
36 | 37 |
| |
37 | 38 |
| |
38 | 39 |
| |
39 |
| - | |
40 |
| - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 |
| |
42 | 45 |
| |
43 | 46 |
| |
|
Lines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
523 | 523 |
| |
524 | 524 |
| |
525 | 525 |
| |
526 |
| - | |
527 |
| - | |
528 | 526 |
| |
529 | 527 |
| |
530 | 528 |
| |
531 | 529 |
| |
| 530 | + | |
532 | 531 |
| |
533 | 532 |
| |
534 |
| - | |
535 | 533 |
| |
| 534 | + | |
| 535 | + | |
536 | 536 |
| |
537 | 537 |
| |
538 | 538 |
| |
| |||
561 | 561 |
| |
562 | 562 |
| |
563 | 563 |
| |
564 |
| - | |
565 |
| - | |
566 | 564 |
| |
567 | 565 |
| |
568 | 566 |
| |
569 | 567 |
| |
| 568 | + | |
570 | 569 |
| |
571 | 570 |
| |
572 | 571 |
| |
| 572 | + | |
573 | 573 |
| |
574 | 574 |
| |
575 | 575 |
| |
|
0 commit comments
Comments
(0)