Re: [Patch] Log10 and hyperbolic functions for SQL:2016 compliance
Alvaro Herrera <alvherre@2ndquadrant.com>
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Lætitia Avrot <laetitia.avrot@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2019-02-02T02:31:51Z
Lists: pgsql-hackers
On 2019-Jan-31, Lætitia Avrot wrote: > Hi, > > Thanks to Emil Iggland's kind review, I added precision on documentation > for hyperbolic functions. Hello I see that in dtanh() you set errno to 0 before calling tanh(), but 1) you don't check for it afterwards (seems like you should be checking for ERANGE, as well as checking the return value for isinf()), and 2) you don't do that in dsinh() and dcosh() and I'm not quite sure I see why. What's up with that? Thanks, -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Add support for hyperbolic functions, as well as log10().
- f1d85aa98ee7 12.0 landed