From: Tom Lane <tgl@sss.pgh.pa.us>
To: jbglaw@lug-owl.de
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8361: 9.3~beta2-2: Wrong `interval' format with aggregate functions.
Date: Sun, 04 Aug 2013 00:08:50 -0400
Message-ID: <11418.1375589330@sss.pgh.pa.us> (raw)
In-Reply-To: <E1V5ncg-00074G-DG@wrigleys.postgresql.org>
References: <E1V5ncg-00074G-DG@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
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: tgl@sss.pgh.pa.us, jbglaw@lug-owl.de
Subject: Re: BUG #8361: 9.3~beta2-2: Wrong `interval' format with aggregate functions.
In-Reply-To: <11418.1375589330@sss.pgh.pa.us>
References: <E1V5ncg-00074G-DG@wrigleys.postgresql.org> <11418.1375589330@sss.pgh.pa.us>
* 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