Re: [PATCH] Fix float8 parsing of denormal values (on some platforms?)

From: Marti Raudsepp <marti(at)juffo(dot)org>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Cc: Jeroen Vermeulen <jtv(at)xs4all(dot)nl>
Subject: Re: [PATCH] Fix float8 parsing of denormal values (on some platforms?)
Date: 2011-12-21 16:24:17
Message-ID: CABRT9RDLx_Zs_zz2=vhH3L2h-20n9Rs5XskOsqoyfWj3tUbfdA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Dec 21, 2011 at 18:21, Marti Raudsepp <marti(at)juffo(dot)org> wrote:
> I think the least invasive fix, as proposed by Jeroen, is to fail only
> when ERANGE is set *and* the return value is 0.0 or +/-HUGE_VAL.
> Reading relevant specifications, this seems to be a fairly safe
> assumption. That's what the attached patch does.

Oops, now attached the patch too.

Regards,
Marti

Attachment Content-Type Size
float8-denormal-parsing.patch text/x-patch 3.5 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2011-12-21 16:24:28 Re: CLOG contention
Previous Message Marti Raudsepp 2011-12-21 16:21:10 [PATCH] Fix float8 parsing of denormal values (on some platforms?)