Re: NaN/Inf fix for ECPG

From: Boszormenyi Zoltan <zb(at)cybertec(dot)at>
To: Rémi Zara <remi(dot)zara(at)free(dot)fr>
Cc: Michael Meskes <meskes(at)postgresql(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: NaN/Inf fix for ECPG
Date: 2010-02-24 17:58:31
Message-ID: 4B8568C7.1060305@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Rémi Zara írta:
> Le 17 févr. 2010 à 12:18, Boszormenyi Zoltan a écrit :
>
>> Is this buildfarm member for detecting bugs in the already
>> obsolete NetBSD 5.0 BETA, or what? The final 5.0 and
>> two bugfix releases are already out for a while. The owner
>> of that particular machine should upgrade.
>>
>
>
> I upgraded pika to NetBSD 5.0.2,

Thanks very much for that.

> and the problem is still there.
>

:-(

> There are some tests (in "core") which tests for NaN and Infinity, which pass. So either those tests are insufficient, or the code does something different there.
> Anything you want me to try ?
>

Here's the attached test code. Compile it with

gcc -Wall -o nantest nantest.c -lm

and run it. It tests NAN anf INFINITY values with isinf() and isnan().
The expected output is:

==================
$ ./nantest
computed NAN
1 0
computed INFINITY
0 1
==================

Instead of "computed", NetBSD/x86-64 prints "defined"
but the test results are the same as under Linux/x86-64.

Best regards,
Zoltán Böszörményi

--
Bible has answers for everything. Proof:
"But let your communication be, Yea, yea; Nay, nay: for whatsoever is more
than these cometh of evil." (Matthew 5:37) - basics of digital technology.
"May your kingdom come" - superficial description of plate tectonics

----------------------------------
Zoltán Böszörményi
Cybertec Schönig & Schönig GmbH
http://www.postgresql.at/

Attachment Content-Type Size
nantest.c text/x-csrc 603 bytes

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2010-02-24 18:07:48 Re: pg_stop_backup does not complete
Previous Message Simon Riggs 2010-02-24 17:52:06 Re: Re: [COMMITTERS] pgsql: Move documentation of all recovery.conf option to a new chapter.