Re: Issue with point_ops and NaN - Mailing list pgsql-hackers

From Julien Rouhaud
Subject Re: Issue with point_ops and NaN
Date
Msg-id 20210330125441.kyrjdcktg3vdctqo@nol
Whole thread Raw
In response to Re: Issue with point_ops and NaN  (Laurenz Albe <laurenz.albe@cybertec.at>)
Responses Re: Issue with point_ops and NaN  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Tue, Mar 30, 2021 at 02:47:05PM +0200, Laurenz Albe wrote:
> On Tue, 2021-03-30 at 17:57 +0800, Julien Rouhaud wrote:
> > 
> > Getting a consistent behavior shouldn't be hard, but I'm unsure which behavior
> > is actually correct.
> 
> I'd say that this is certainly wrong:
> 
> SELECT point('NaN','NaN') <@ polygon('(0,0),(1,0),(1,1),(0,0)');
> 
>  ?column? 
> ----------
>  t
> (1 row)

Yeah that's what I think too, but I wanted to have confirmation.



pgsql-hackers by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: Issue with point_ops and NaN
Next
From: torikoshia
Date:
Subject: Re: Get memory contexts of an arbitrary backend process