aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistget.c
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2019-09-08 21:07:30 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2019-09-08 22:08:12 +0300
commite5d8f3596100da0d38a38513c69e803b7fe7041a (patch)
tree398f1d0a3e6018db49c6964b36a89e3e30f7fe94 /src/backend/access/gist/gistget.c
parent862ef372d6b23629f93d4afc123ddd7d172501ac (diff)
downloadpostgresql-e5d8f3596100da0d38a38513c69e803b7fe7041a.tar.gz
postgresql-e5d8f3596100da0d38a38513c69e803b7fe7041a.zip
Fix handling Inf and Nan values in GiST pairing heap comparator
Previously plain float comparison was used in GiST pairing heap. Such comparison doesn't provide proper ordering for value sets containing Inf and Nan values. This commit fixes that by usage of float8_cmp_internal(). Note, there is remaining problem with NULL distances, which are represented as Inf in pairing heap. It would be fixes in subsequent commit. Backpatch to all supported versions. Reported-by: Andrey Borodin Discussion: https://postgr.es/m/CAPpHfdsNvNdA0DBS%2BwMpFrgwT6C3-q50sFVGLSiuWnV3FqOJuQ%40mail.gmail.com Author: Alexander Korotkov Reviewed-by: Heikki Linnakangas Backpatch-through: 9.4
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions