Re: Solaris 8 regression test failure with 8.0.0beta5

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Solaris 8 regression test failure with 8.0.0beta5
Date: 2004-11-25 17:51:51
Message-ID: 730.1101405111@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Greg Stark <gsstark(at)mit(dot)edu> writes:
> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

>> This query would invoke the following code in int4div:
>>
>> if (arg2 == 0)

> I have a vague memory that IEEE floats have zero coming in two
> flavours, 0 and -0. I wonder if it's possible merely comparing against
> 0 isn't covering all the possible cases that can trigger a division by
> zero trap.

(a) This is an integer, not a float.

(b) The IEEE spec requires that 0 and -0 compare equal.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-11-25 18:16:10 Re: problem installing 8.0.0beta5 on OS X 10.3
Previous Message Tom Lane 2004-11-25 17:46:58 Re: Explain output: wrong row count?