Re: Floating point comparison inconsistencies of the geometric types - Mailing list pgsql-hackers

From Emre Hasegeli
Subject Re: Floating point comparison inconsistencies of the geometric types
Date
Msg-id CAE2gYzxcgkhkMP1oeiQji=CrgJKyq2mM3SSv5hMRBMxA0caidg@mail.gmail.com
Whole thread Raw
In response to Floating point comparison inconsistencies of the geometric types  (Emre Hasegeli <emre@hasegeli.com>)
Responses Re: Floating point comparison inconsistencies of the geometric types  (Kevin Grittner <kgrittn@gmail.com>)
List pgsql-hackers
My progress so far is attached as 2 patches.  First one introduces an
header file for adt/float.c.  Second one refactors the geometric
operations.

I have removed the fuzzy comparison macros all together.  It is very
hard to keep some of them and maintain consistency.  Many operators
that would benefit from the fuzzy comparison is quite broken at the
moment [1], anyway.  I have also made the comparisons safe against NaN
[2].

[1]
https://www.postgresql.org/message-id/flat/CAE2gYzw_-z%3DV2kh8QqFjenu%3D8MJXzOP44wRW%3DAzzeamrmTT1%3DQ%40mail.gmail.com
[2] https://www.postgresql.org/message-id/flat/28685.1468246504%40sss.pgh.pa.us

Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: One process per session lack of sharing
Next
From: Peter Eisentraut
Date:
Subject: Re: \timing interval