BUG #15545: wrong calculation

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: c_michal(at)poczta(dot)onet(dot)pl
Subject: BUG #15545: wrong calculation
Date: 2018-12-11 12:46:49
Message-ID: 15545-96bc1bb99d03b6af@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 15545
Logged by: Michal C
Email address: c_michal(at)poczta(dot)onet(dot)pl
PostgreSQL version: 10.5
Operating system: Windows
Description:

select extract (epoch from age ('2018-01-31'::date,'2013-01-01'::date) ) /
86400,'2018-01-31'::date-'2013-01-01'::date

first column is wrong calculation

Result:
"column1";"column2"
1856.25;1856

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2018-12-11 13:15:36 BUG #15546: alter large object n owner to new owner
Previous Message Tom Lane 2018-12-09 15:52:25 Re: BUG #15544: Unexpected: "Returned record type does not match expected record type" after ALTER TABLE