forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit749b04d
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 parent7babff1 commit749b04d
1 file changed
+5
-2
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 |
| |
|
0 commit comments
Comments
(0)