View Single Post

   
  #3 (permalink)  
Old 04-18-2008, 09:14 AM
Bruce Momjian
 
Posts: n/a
Default Re: [COMMITTERS] pgsql: Put back ERANGE test in

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. +

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Reply With Quote