pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andreas Seltenreich <seltenreich@gmx.de>
Cc: pgsql-hackers@postgresql.org
Subject: Re: GiST index build versus NaN coordinates
Date: Sat, 16 Jul 2016 14:27:48 -0400
Message-ID: <12093.1468693668@sss.pgh.pa.us> (raw)
In-Reply-To: <87d1md1xji.fsf@credativ.de>
References: <28685.1468246504@sss.pgh.pa.us>
	<878tx7491q.fsf@credativ.de>
	<87d1md1xji.fsf@credativ.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Andreas Seltenreich <seltenreich@gmx.de> writes:
> I wrote:
>> Sounds like some fuzz testing with nan/infinity is in order.

> related fallout: close_ps returns a NULL pointer with NaNs around:
> select close_ps('(nan,nan)', '(nan,nan),(nan,nan)');
> -- TRAP: FailedAssertion("!(result != ((void *)0))", File: "geo_ops.c", Line: 2860)

Yeah, that Assert seems way too optimistic.  Even without NaNs, I wonder
whether plain old roundoff error couldn't trigger cases where interpt_sl
fails to find an intersection point.  I'm inclined to just let close_ps
return SQL NULL in such cases.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (9+ messages)

Message-ID: <12093.1468693668@sss.pgh.pa.us>
Permalink:  ../12093.1468693668@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12093.1468693668@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, seltenreich@gmx.de
  Subject: Re: GiST index build versus NaN coordinates
  In-Reply-To: <12093.1468693668@sss.pgh.pa.us>
  References: <28685.1468246504@sss.pgh.pa.us> <878tx7491q.fsf@credativ.de> <87d1md1xji.fsf@credativ.de> <12093.1468693668@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox