BUG #8361: 9.3~beta2-2: Wrong `interval' format with aggregate functions.

From: jbglaw(at)lug-owl(dot)de
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #8361: 9.3~beta2-2: Wrong `interval' format with aggregate functions.
Date: 2013-08-04 02:00:42
Message-ID: E1V5ncg-00074G-DG@wrigleys.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 8361
Logged by: Jan-Benedict Glaw
Email address: jbglaw(at)lug-owl(dot)de
PostgreSQL version: Unsupported/Unknown
Operating system: Debian unstable/experimental
Description:

Hi!

I just found intervals that are shown with more than 24 hours in the `hours'
field. Their overall shown value matches EXTRACT (expoch from xxxx), but the
printed value looks bogus:

buildmaster=> select avg(lastbuild_same) from test_values ;
avg
-----------------------
1 day 26:16:18.678927
(1 row)

Notice the "26" there. It's actually 2 days 2h 16min 18sec.

Short SQL snippet can be found at
http://lug-owl.de/~jbglaw/intervals_not_printed_correctly.sql

Would be nice if somebody would test this with further PostgreSQL versions
and specifically with the most recent development branch.

Thanks,
Jan-Benedict

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2013-08-04 04:08:50 Re: BUG #8361: 9.3~beta2-2: Wrong `interval' format with aggregate functions.
Previous Message Tom Lane 2013-08-03 16:47:14 Re: BUG #8355: PL/Python 3 can't convert infinity to PostgreSQL's value