| From: | Bruce Momjian <bruce(at)momjian(dot)us> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | pgsql-hackers(at)postgresql(dot)org, Roman Kononov <kononov195-pgsql(at)yahoo(dot)com>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org> |
| Subject: | Re: [BUGS] BUG #2846: inconsistent and confusing |
| Date: | 2006-12-28 01:42:27 |
| Message-ID: | 200612280142.kBS1gRE16680@momjian.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers pgsql-patches |
Tom Lane wrote:
> Roman Kononov <kononov195-pgsql(at)yahoo(dot)com> writes:
> > On 12/27/2006 03:23 PM, Bruce Momjian wrote:
> >> Are you sure? As I remember, computation automatically upgrades to
> >> 'double'. See this program and output:
>
> > This is platform- and compiler- dependent:
>
> ... and probably irrelevant, too. We should store the result into a
> float4 variable and then test for isinf() on that; that eliminates the
> question of whether the compiler did the multiply in a wider format or
> not.
True for overflow to Infinity, but underflow checking is better for
float4 using float8. See previous email for details.
--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2006-12-28 01:45:33 | Re: [BUGS] BUG #2846: inconsistent and confusing |
| Previous Message | Bruce Momjian | 2006-12-28 01:41:23 | Re: [BUGS] BUG #2846: inconsistent and confusing |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2006-12-28 01:45:33 | Re: [BUGS] BUG #2846: inconsistent and confusing |
| Previous Message | Bruce Momjian | 2006-12-28 01:41:23 | Re: [BUGS] BUG #2846: inconsistent and confusing |