Re: NaN/Inf fix for ECPG - Mailing list pgsql-hackers

From Rémi Zara
Subject Re: NaN/Inf fix for ECPG
Date
Msg-id F7DDC002-E59F-4551-BC95-7CB28F6B9EB4@mac.com
Whole thread Raw
In response to Re: NaN/Inf fix for ECPG  (Boszormenyi Zoltan <zb@cybertec.at>)
Responses Re: NaN/Inf fix for ECPG
List pgsql-hackers
Le 26 févr. 2010 à 12:12, Boszormenyi Zoltan a écrit :

>
> ecpglib/data.c includes "postgres_fe.h", so it should be pulling
> everything that's relevant from port/*, right?
>
> Michael, can we try to install the first two patches?
> They wouldn't hurt.
>

I've tried patch 1 and 2, but they do not work. The fact is that the code is not used in the backend, because
strtod("NaN",endptr) works. (isnan(strtod("NaN", endptr)) is true). 

I should also note that isnan((double)nan("")) is true (works).

I will also report to NetBSD that isnan((double)NAN) does not work on mips.

Regards,

Rémi Zara




pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: Hot Standby query cancellation and Streaming Replication integration
Next
From: Greg Stark
Date:
Subject: Re: A thought on Index Organized Tables