Re: Strange behavior with polygon and NaN

Kyotaro Horiguchi <horikyota.ntt@gmail.com>

From: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
To: david@pgmasters.net
Cc: tgl@sss.pgh.pa.us, gkokolatos@pm.me, pgsql-hackers@lists.postgresql.org
Date: 2021-12-15T08:31:00Z
Lists: pgsql-hackers
At Wed, 15 Dec 2021 16:20:55 +0900 (JST), Kyotaro Horiguchi <horikyota.ntt@gmail.com> wrote in 
> adjusted so that it treats null as false. On the way doing this, the
> bug #17334 [2] and another bug raised earlier [3] are naturally fixed.

That being said, even if this patch were committed to the master
branch, we won't apply the whole patch set for backbranches.

I guess applying the computeDistance part in the patch works.

# But I found that the part contains a bugX(

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center



Commits

  1. In geo_ops.c, represent infinite slope as Infinity, not DBL_MAX.

  2. Fix FPeq() and friends to get the right answers for infinities.

  3. Extend the geometric regression test cases a little.

  4. Remove underflow error in float division with infinite divisor.