Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V5ncr-00075I-TB for pgsql-bugs@arkaria.postgresql.org; Sun, 04 Aug 2013 02:00:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V5ncq-000301-G5 for pgsql-bugs@arkaria.postgresql.org; Sun, 04 Aug 2013 02:00:52 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V5ncp-0002zv-S9 for pgsql-bugs@postgresql.org; Sun, 04 Aug 2013 02:00:52 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V5ncn-0007uX-JK for pgsql-bugs@postgresql.org; Sun, 04 Aug 2013 02:00:51 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V5ncl-0004JK-Os for pgsql-bugs@postgresql.org; Sun, 04 Aug 2013 02:00:48 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1V5ncg-00074G-DG for pgsql-bugs@postgresql.org; Sun, 04 Aug 2013 02:00:42 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8361: 9.3~beta2-2: Wrong `interval' format with aggregate functions. To: pgsql-bugs@postgresql.org From: jbglaw@lug-owl.de Message-Id: Date: Sun, 04 Aug 2013 02:00:42 +0000 X-Pg-Spam-Score: -0.7 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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