Re: [HACKERS] [BUGS] BUG #2846: inconsistent and - Mailing list pgsql-patches

From Tom Lane
Subject Re: [HACKERS] [BUGS] BUG #2846: inconsistent and
Date
Msg-id 2427.1167406410@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] [BUGS] BUG #2846: inconsistent and  (Bruce Momjian <bruce@momjian.us>)
Responses Re: [HACKERS] [BUGS] BUG #2846: inconsistent and  ("Florian G. Pflug" <fgp@phlo.org>)
Re: [HACKERS] [BUGS] BUG #2846: inconsistent and  (Bruce Momjian <bruce@momjian.us>)
List pgsql-patches
Bruce Momjian <bruce@momjian.us> writes:
> OK, are you saying that there is a signal we are ignoring for
> overflow/underflow, or that we should just silently overflow/underflow
> and not throw an error?

Silent underflow is fine with me; it's the norm in most all float
implementations and won't surprise anyone.  For overflow I'm OK with
either returning infinity or throwing an error --- but if an error,
it should only be about inf-out-with-non-inf-in, not comparisons to any
artificial MAX/MIN values.

Anyone else have an opinion about this?

            regards, tom lane

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] [BUGS] BUG #2846: inconsistent and
Next
From: "Florian G. Pflug"
Date:
Subject: Re: [HACKERS] [BUGS] BUG #2846: inconsistent and