Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V5pcp-0005NX-5d for pgsql-bugs@arkaria.postgresql.org; Sun, 04 Aug 2013 04:08:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V5pco-00008V-6H for pgsql-bugs@arkaria.postgresql.org; Sun, 04 Aug 2013 04:08:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V5pcm-00008M-9Y for pgsql-bugs@postgresql.org; Sun, 04 Aug 2013 04:08:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V5pcj-0007if-UK for pgsql-bugs@postgresql.org; Sun, 04 Aug 2013 04:08:55 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id r7448onA011419; Sun, 4 Aug 2013 00:08:50 -0400 From: Tom Lane To: jbglaw@lug-owl.de cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8361: 9.3~beta2-2: Wrong `interval' format with aggregate functions. In-reply-to: References: Comments: In-reply-to jbglaw@lug-owl.de message dated "Sun, 04 Aug 2013 02:00:42 -0000" Date: Sun, 04 Aug 2013 00:08:50 -0400 Message-ID: <11418.1375589330@sss.pgh.pa.us> X-Pg-Spam-Score: -3.4 (---) 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 jbglaw@lug-owl.de writes: > I just found intervals that are shown with more than 24 hours in the `hours' > field. This is not erroneous. "24 hours" is not necessarily equivalent to "1 day", so the interval type doesn't automatically transpose one to the other. If you want that sort of conversion, see the justify_days(), justify_hours(), and justify_interval() functions. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs