Re: Fixing geometic calculation

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sam Mason <sam(at)samason(dot)me(dot)uk>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Fixing geometic calculation
Date: 2009-08-07 18:13:26
Message-ID: 24956.1249668806@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Sam Mason <sam(at)samason(dot)me(dot)uk> writes:
> On Fri, Aug 07, 2009 at 12:50:39PM -0400, Tom Lane wrote:
>> No, I'm worried about code that supposes that it can divide by (x - y)
>> after testing that FPeq(x,y) is not true. point_sl() for instance.

> OK, but I'm still not sure what you're getting at.

Underflow. x!=y does not imply (x-y) != 0, if x and y are sufficiently
small and close together. The difference could underflow to zero.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2009-08-07 18:32:30 Re: "PANIC: cannot make new WAL entries during recovery" in the wild
Previous Message Tom Lane 2009-08-07 17:51:53 Re: "PANIC: cannot make new WAL entries during recovery" in the wild