From: jbglaw@lug-owl.de
To: pgsql-bugs@postgresql.org
Subject: BUG #8361: 9.3~beta2-2: Wrong `interval' format with aggregate functions.
Date: Sun, 04 Aug 2013 02:00:42 +0000
Message-ID: <E1V5ncg-00074G-DG@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 8361
Logged by: Jan-Benedict Glaw
Email address: jbglaw@lug-owl.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
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: jbglaw@lug-owl.de
Subject: Re: BUG #8361: 9.3~beta2-2: Wrong `interval' format with aggregate functions.
In-Reply-To: <E1V5ncg-00074G-DG@wrigleys.postgresql.org>
References: <E1V5ncg-00074G-DG@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox