pgsql: Fix handling of NULL distances in KNN-GiST

2019-09-08 Thread Alexander Korotkov
Fix handling of NULL distances in KNN-GiST In order to implement NULL LAST semantic GiST previously assumed distance to the NULL value to be Inf. However, our distance functions can return Inf and NaN for non-null values. In such cases, NULL LAST semantic appears to be broken. This commit

pgsql: Fix handling of NULL distances in KNN-GiST

2019-09-08 Thread Alexander Korotkov
Fix handling of NULL distances in KNN-GiST In order to implement NULL LAST semantic GiST previously assumed distance to the NULL value to be Inf. However, our distance functions can return Inf and NaN for non-null values. In such cases, NULL LAST semantic appears to be broken. This commit

pgsql: Fix handling of NULL distances in KNN-GiST

2019-09-08 Thread Alexander Korotkov
Fix handling of NULL distances in KNN-GiST In order to implement NULL LAST semantic GiST previously assumed distance to the NULL value to be Inf. However, our distance functions can return Inf and NaN for non-null values. In such cases, NULL LAST semantic appears to be broken. This commit

pgsql: Fix handling of NULL distances in KNN-GiST

2019-09-08 Thread Alexander Korotkov
Fix handling of NULL distances in KNN-GiST In order to implement NULL LAST semantic GiST previously assumed distance to the NULL value to be Inf. However, our distance functions can return Inf and NaN for non-null values. In such cases, NULL LAST semantic appears to be broken. This commit

pgsql: Fix handling of NULL distances in KNN-GiST

2019-09-08 Thread Alexander Korotkov
Fix handling of NULL distances in KNN-GiST In order to implement NULL LAST semantic GiST previously assumed distance to the NULL value to be Inf. However, our distance functions can return Inf and NaN for non-null values. In such cases, NULL LAST semantic appears to be broken. This commit

pgsql: Fix handling of NULL distances in KNN-GiST

2019-09-08 Thread Alexander Korotkov
Fix handling of NULL distances in KNN-GiST In order to implement NULL LAST semantic GiST previously assumed distance to the NULL value to be Inf. However, our distance functions can return Inf and NaN for non-null values. In such cases, NULL LAST semantic appears to be broken. This commit

pgsql: Fix handling of NULL distances in KNN-GiST

2019-09-08 Thread Alexander Korotkov
Fix handling of NULL distances in KNN-GiST In order to implement NULL LAST semantic GiST previously assumed distance to the NULL value to be Inf. However, our distance functions can return Inf and NaN for non-null values. In such cases, NULL LAST semantic appears to be broken. This commit