Re: gamma() and lgamma() functions - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: gamma() and lgamma() functions
Date
Msg-id 202407011504.55hycgf74ix4@alvherre.pgsql
Whole thread Raw
In response to Re: gamma() and lgamma() functions  (Stepan Neretin <sncfmgg@gmail.com>)
Responses Re: gamma() and lgamma() functions
List pgsql-hackers
On 2024-Jul-01, Stepan Neretin wrote:

> I have one notice:
> ERROR:  value out of range: overflow. I think we need to add information
> about the available ranges in the error message

I think this is a project of its own.  The error comes from calling
float_overflow_error(), which is a generic routine used in several
functions which have different overflow conditions.  It's not clear to
me that throwing errors listing the specific range for each case is
worth the effort.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/
"Escucha y olvidarás; ve y recordarás; haz y entenderás" (Confucio)



pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: jsonpath: Inconsistency of timestamp_tz() Output
Next
From: Daniel Gustafsson
Date:
Subject: Re: small pg_dump code cleanup