Re: [COMMITTERS] pgsql: Put back ERANGE test in - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: [COMMITTERS] pgsql: Put back ERANGE test in
Date
Msg-id 200701060401.l0641po02755@momjian.us
Whole thread Raw
In response to Re: [COMMITTERS] pgsql: Put back ERANGE test in dpow().  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [COMMITTERS] pgsql: Put back ERANGE test in dpow().  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > It ERANGE's only on Inf, not underflow?  I would prefer:
> >     else if (errno == ERANGE && !isinf(result))
>
> No objection to that, just don't take out the ERANGE test altogether
> again ;-)

Actually, when you return ERANGE, what is 'result'?  Nan?  Inf?  finite?

--
  Bruce Momjian   bruce@momjian.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] wal_checksum = on (default) | off
Next
From: "Joshua D. Drake"
Date:
Subject: Re: [HACKERS] wal_checksum = on (default) | off