pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-hackers@lists.postgresql.org
Subject: exp() versus the POSIX standard
Date: Thu, 11 Jun 2020 19:22:32 -0400
Message-ID: <582552.1591917752@sss.pgh.pa.us> (raw)

The POSIX standard says this about the exp(3) function:

	If x is -Inf, +0 shall be returned.

At least on my Linux box, our version does no such thing:

regression=# select exp('-inf'::float8);
ERROR:  value out of range: underflow

Does anyone disagree that that's a bug?  Should we back-patch
a fix, or just change it in HEAD?  Given the lack of user
complaints, I lean a bit towards the latter, but am not sure.

			regards, tom lane





view thread (8+ messages)  latest in thread

Message-ID: <582552.1591917752@sss.pgh.pa.us>
Permalink:  ../582552.1591917752@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/582552.1591917752@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, pgsql-hackers@lists.postgresql.org
  Subject: Re: exp() versus the POSIX standard
  In-Reply-To: <582552.1591917752@sss.pgh.pa.us>

* 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