Re: Inconsistent time interval formatting - Mailing list pgsql-general

From Ben Chobot
Subject Re: Inconsistent time interval formatting
Date
Msg-id 3764DD52-8F88-48BF-8BFF-EDC6E88810DF@silentmedia.com
Whole thread Raw
In response to Inconsistent time interval formatting  (Allen Chen <rocklob@gmail.com>)
Responses Re: Inconsistent time interval formatting  (Gary Chambers <gwchamb@gwcmail.com>)
List pgsql-general
On Jan 13, 2011, at 9:34 AM, Allen Chen wrote:

> Has anyone else out there noticed inconsistencies in how pgsql formats time intervals over 1 day?
>
> For example, I have a query that returns a column of intervals and I get output like this:
>
> 30:30:00
> 1 day 03:02:47
> 1 day 01:38:34
> 26:25:29.50
>
> Why do some of the intervals show days broken out whereas others only show hours?   I have seen intervals left in
hourseven when the intervals are more than two days long.  FWIW, I would prefer if it was always left in hours, but
wouldbe happy if it would just be consistent either way. 
>
> I'm running PostgreSQL 8.3.12, but I have seen this in earlier versions I've used too.

I have the same issue on 8.4. Fixing it is low on my task list, but I too would like to know why.

pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Record with a field consisting of table rows
Next
From: Kenneth Buckler
Date:
Subject: Re: Optimal settings for embedded system running PostgreSQL