Re: Inconsistent time interval formatting

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Inconsistent time interval formatting
Date: 2011-01-13 21:15:11
Message-ID: 4D2F6B5F.8080506@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 01/13/11 1:08 PM, Ben Chobot wrote:
> On Jan 13, 2011, at 11:03 AM, Tom Lane wrote:
>
>> If you don't care about that, you can use justify_hours (I think that's
>> the right function) to smash them to the same thing.
> I use justify_hours, and I still get entries like '1 day 35:31:10' intermixed with the entires I'd expect like '2 days 03:12:40'.

test=> select justify_hours(interval '1 day 35:31:10');
justify_hours
-----------------
2 days 11:31:10
(1 row)

works here. I believe this is an 8.3.9 system (overdue for upgrades)
that I happened to test on.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nicklas Avén 2011-01-13 21:42:25 Re: Performance on multiple OR conditions inside ()
Previous Message Ben Chobot 2011-01-13 21:08:17 Re: Inconsistent time interval formatting