Re: numeric regression test passes, but why? - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: numeric regression test passes, but why?
Date
Msg-id 20180111162355.yt76yvde236bab6a@alvherre.pgsql
Whole thread Raw
In response to Re: numeric regression test passes, but why?  (ilmari@ilmari.org (Dagfinn Ilmari Mannsåker))
Responses Re: numeric regression test passes, but why?
List pgsql-hackers
Dagfinn Ilmari Mannsåker wrote:
> ilmari@ilmari.org (Dagfinn Ilmari Mannsåker) writes:
> 
> > The behaviour seems to have changed in 9.6:
> 
> Indeed, https://www.postgresql.org/docs/current/static/release-9-6.html
> has the following entry:
> 
>  * Improve the accuracy of the ln(), log(), exp(), and pow() functions
>    for type numeric (Dean Rasheed)

Well, the test line was added with that commit (7d9a4737c268), and
indeed its comment says this used to fail:

+-- cases that used to error out
+select 0.12 ^ (-25);
+                 ?column?                  
+-------------------------------------------
+ 104825960103961013959336.4983657883169110
+(1 row)

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Ildar Musin
Date:
Subject: Re: General purpose hashing func in pgbench
Next
From: Alvaro Herrera
Date:
Subject: Re: Identifying ALTER TABLE "sub-command"