Re: missing "day(s)" in interval (was: Convert from Seconds-Since-Epoch to Timestamp) - Mailing list pgsql-sql

From Tom Lane
Subject Re: missing "day(s)" in interval (was: Convert from Seconds-Since-Epoch to Timestamp)
Date
Msg-id 1823.969727578@sss.pgh.pa.us
Whole thread Raw
In response to missing "day(s)" in interval (was: Convert from Seconds-Since-Epoch to Timestamp)  (Louis-David Mitterrand <cunctator@apartia.ch>)
List pgsql-sql
Louis-David Mitterrand <cunctator@apartia.ch> writes:
> By the way, is it normal that the "day" word doesn't appear in the interval?

> auction=# select interval(now()::abstime::int4);
>           interval          
> ----------------------------
>  30 years 9 mons 3 15:42:09
> (1 row)

Looks like a bug to me ... Thomas, do you agree?

Curiously, it appears that the interval input converter will accept this
with or without the 'days' keyword included.
        regards, tom lane


pgsql-sql by date:

Previous
From: Louis-David Mitterrand
Date:
Subject: missing "day(s)" in interval (was: Convert from Seconds-Since-Epoch to Timestamp)
Next
From: Jeff MacDonald
Date:
Subject: select