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

Re: [BUGS] BUG #2846: inconsistent and confusing handling of

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgresql(dot)org, Bruce Momjian <bruce(at)momjian(dot)us>
Cc: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>, Roman Kononov <kononov195-pgsql(at)yahoo(dot)com>
Subject: Re: [BUGS] BUG #2846: inconsistent and confusing handling of
Date: 2006-12-27 19:15:02
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-patches
Bruce Momjian <bruce(at)momjian(dot)us> writes:
> I have made some more progress on this patch.

I'm not convinced that you're fixing things so much as doing your best
to destroy IEEE-compliant float arithmetic behavior.

I think what we should probably consider is removing CheckFloat4Val
and CheckFloat8Val altogether, and just letting the float arithmetic
have its head.  Most modern hardware gets float arithmetic right per
spec, and we shouldn't be second-guessing it.

A slightly less radical proposal is to reject only the case where
isinf(result) and neither input isinf(); and perhaps likewise with
respect to NaNs.

			regards, tom lane

In response to


pgsql-hackers by date

Next:From: Simon RiggsDate: 2006-12-27 19:24:46
Subject: Re: Bitmap index thoughts
Previous:From: dakotali kasapDate: 2006-12-27 19:08:24
Subject: Re: how to add my source file?

pgsql-patches by date

Next:From: Alvaro HerreraDate: 2006-12-27 20:22:35
Subject: Re: Allow the identifier length to be increased via a configure option
Previous:From: Bruce MomjianDate: 2006-12-27 18:44:31
Subject: Re: [BUGS] BUG #2846: inconsistent and confusing handling of

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