Skip site navigation (1) Skip section navigation (2)

Re: [COMMITTERS] pgsql: Check for ERANGE in exp()

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql: Check for ERANGE in exp()
Date: 2007-01-07 03:04:02
Message-ID: 200701070304.l07342H07043@momjian.us (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-hackers
Tom Lane wrote:
> Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > Tom, on HPPA, does ERANGE get set for both overflow and underflow?  I
> > assume only overflow.
> 
> Yeah, AFAICT exp() just returns zero for underflow cases.  I get
> 
> regression=# select exp(-2000);
> ERROR:  value out of range: underflow
> 
> but I was getting that before your last patch, too.

Uh, if you were getting that before my last patch, then I don't think
you return ERANGE for underflow.

-- 
  Bruce Momjian   bruce(at)momjian(dot)us
  EnterpriseDB    http://www.enterprisedb.com

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

In response to

pgsql-hackers by date

Next:From: Tom LaneDate: 2007-01-07 03:09:08
Subject: Re: COPY with no WAL, in certain circumstances
Previous:From: Tom LaneDate: 2007-01-07 03:00:12
Subject: Re: [COMMITTERS] pgsql: Check for ERANGE in exp()

pgsql-committers by date

Next:From: Peter EisentrautDate: 2007-01-07 08:49:31
Subject: pgsql: Indent comments in makefiles better so they don't appear in the
Previous:From: Tom LaneDate: 2007-01-07 03:00:12
Subject: Re: [COMMITTERS] pgsql: Check for ERANGE in exp()

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group