Re: Issue with point_ops and NaN

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Julien Rouhaud <rjuju123(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Issue with point_ops and NaN
Date: 2021-03-31 00:26:00
Message-ID: YGPBmOhFeoi4EkcY@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Mar 30, 2021 at 11:39:40PM +0800, Julien Rouhaud wrote:
> On Tue, Mar 30, 2021 at 11:02:32AM -0400, Tom Lane wrote:
>> Agreed --- one could make an argument for either 'false' or NULL
>> result, but surely not 'true'.
>
> I would think that it should return NULL since it's not inside nor outside the
> polygon, but I'm fine with false.

Yeah, this is trying to make an undefined point fit into a box that
has a definition, so "false" does not make sense to me either here as
it implies that the point exists? NULL seems adapted here.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2021-03-31 00:36:51 Re: Outdated comment for CreateStmt.inhRelations
Previous Message 'alvherre@alvh.no-ip.org' 2021-03-31 00:24:00 Re: libpq debug log