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

From Tom Lane
Subject Re: NaN/Inf fix for ECPG
Date
Msg-id 3885.1267112279@sss.pgh.pa.us
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
Boszormenyi Zoltan <zb@cybertec.at> writes:
> Can you try whether the first patch (missing float.h from data.c)
> solves the problem? And together with the 2nd one? In that
> patch I fixed the order of float.h and math.h in nan_test.pgc,
> which is the opposite of the order found in e.g. backend/utils/adt/float.c.

> The 3rd patch is explicit about NetBSD/mips but it doesn't feel right.

The third patch is surely wrong.  We don't need to do that in the
backend's instance of get_float8_nan, so ecpglib shouldn't need it
either.

I suspect that the ultimate cause of this is either one of the header
inclusion inconsistencies you found, or something associated with
not pulling in all the stuff that postgres.h does.  port/netbsd.h
is empty though, so it's not immediately clear what might be missing.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Odd CVS revision number
Next
From: Fujii Masao
Date:
Subject: Re: Streaming replication and pg_xlogfile_name()