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

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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(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:00:12
Message-ID: 2847.1168138812@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-hackers
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.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Bruce MomjianDate: 2007-01-07 03:04:02
Subject: Re: [COMMITTERS] pgsql: Check for ERANGE in exp()
Previous:From: Joshua D. DrakeDate: 2007-01-07 02:37:47
Subject: Re: COPY with no WAL, in certain circumstances

pgsql-committers by date

Next:From: Bruce MomjianDate: 2007-01-07 03:04:02
Subject: Re: [COMMITTERS] pgsql: Check for ERANGE in exp()
Previous:From: Tom LaneDate: 2007-01-07 01:56:24
Subject: pgsql: Fix oversight in handling of row-comparison index keys: if the

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