Re: [HACKERS] [BUGS] BUG #2846: inconsistent and

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>, Roman Kononov <kononov195-pgsql(at)yahoo(dot)com>
Subject: Re: [HACKERS] [BUGS] BUG #2846: inconsistent and
Date: 2006-12-29 15:33:30
Message-ID: 2427.1167406410@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Bruce Momjian <bruce(at)momjian(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2006-12-29 15:38:42 Re: TODO: GNU TLS
Previous Message Bruce Momjian 2006-12-29 15:13:27 Re: WITH support

Browse pgsql-patches by date

  From Date Subject
Next Message Brian Hurt 2006-12-29 15:45:04 Re: [PATCHES] [BUGS] BUG #2846: inconsistent and
Previous Message Bruce Momjian 2006-12-29 15:12:31 Re: [HACKERS] [BUGS] BUG #2846: inconsistent and