pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roman Kononov <kononov195-pgsql@yahoo.com>
To: pgsql-hackers@postgresql.org
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: PostgreSQL-patches <pgsql-patches@postgresql.org>
Subject: Re: [PATCHES] [BUGS] BUG #2846: inconsistent and confusing handling
Date: Wed, 27 Dec 2006 14:27:10 -0600
Message-ID: <4592D71E.8070401@yahoo.com> (raw)
In-Reply-To: <19208.1167246902@sss.pgh.pa.us>
References: <200612271844.kBRIiVb18465@momjian.us>
	<19208.1167246902@sss.pgh.pa.us>

On 12/27/2006 01:15 PM, Tom Lane wrote:
> 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.

I vote for complete IEEE-compliance. No exceptions with pure floating
point math. Float -> int conversions should reject overflow, INF and
NaN. Float -> numeric conversions should reject INF.

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

This might look like another possibility for confusion. For example
INF-INF=NaN.

Regards,
Roman.





view thread (12+ messages)  latest in thread

Message-ID: <4592D71E.8070401@yahoo.com>
Permalink:  ../4592D71E.8070401@yahoo.com/
Also on:    postgresql.org/message-id/4592D71E.8070401@yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: kononov195-pgsql@yahoo.com, tgl@sss.pgh.pa.us, bruce@momjian.us, pgsql-patches@postgresql.org
  Subject: Re: [PATCHES] [BUGS] BUG #2846: inconsistent and confusing handling
  In-Reply-To: <4592D71E.8070401@yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox