From: | ilmari(at)ilmari(dot)org (Dagfinn Ilmari =?utf-8?Q?Manns=C3=A5ker?=) |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Chapman Flack <chap(at)anastigmatix(dot)net>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: numeric regression test passes, but why? |
Date: | 2018-01-11 12:39:47 |
Message-ID: | d8jvag81sdo.fsf@dalvik.ping.uio.no |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> Chapman Flack <chap(at)anastigmatix(dot)net> writes:
>> I see there are some tests in src/test/regress:
>> [ that don't work for me ]
>> Is there some special GUC setting in effect during the make check
>> that would be different in my ordinary session? What else could
>> be different? This is making me question my sanity.
>
> Hm, it won't help your sanity to know that those cases pass fine
> for me, interactively, on a couple of different machines:
>
> $ psql postgres
> psql (11devel)
> Type "help" for help.
>
> postgres=# select 0.12 ^ (-25);
> ?column?
> -------------------------------------------
> 104825960103961013959336.4983657883169110
> (1 row)
>
> postgres=# select 0.5678 ^ (-85);
> ?column?
> ----------------------------------------
> 782333637740774446257.7719390061997396
> (1 row)
>
> You sure you're using a stock build of Postgres? No handmade
> versions of operator ^ lying around?
The behaviour seems to have changed in 9.6:
$ psql -p5495
Line style is unicode.
Border style is 2.
psql (10.1, server 9.5.10)
Type "help" for help.
ilmari(at)[local]:5495 ~=# select 0.12 ^ (-25);
ERROR: division by zero
ilmari(at)[local]:5495 ~=# \q
$ psql -p5496
Line style is unicode.
Border style is 2.
psql (10.1, server 9.6.6)
Type "help" for help.
ilmari(at)[local]:5496 ~=# select 0.12 ^ (-25);
┌───────────────────────────────────────────┐
│ ?column? │
├───────────────────────────────────────────┤
│ 104825960103961013959336.4983657883169110 │
└───────────────────────────────────────────┘
(1 row)
ilmari(at)[local]:5496 ~=# \q
- ilmari
--
"A disappointingly low fraction of the human race is,
at any given time, on fire." - Stig Sandbeck Mathisen
From | Date | Subject | |
---|---|---|---|
Next Message | Marina Polyakova | 2018-01-11 12:42:22 | Re: WIP Patch: Pgbench Serialization and deadlock errors |
Previous Message | Alvaro Herrera | 2018-01-11 12:27:36 | Re: CUBE seems a bit confused about ORDER BY |