Re: operator suggest " interval / interval = numeric" - Mailing list pgsql-hackers

From Warren Turkal
Subject Re: operator suggest " interval / interval = numeric"
Date
Msg-id 7fdf8c4d0801091527x7e7fce24mcf77d4f939619390@mail.gmail.com
Whole thread Raw
In response to Re: operator suggest " interval / interval = numeric"  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: operator suggest " interval / interval = numeric"  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
The year to month and day to second intervals should not overlap. The
standard doesn't actually allow it IIRC.

wt

On Jan 9, 2008 7:17 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Ilya A. Kovalenko" <shadow@oganer.net> writes:
> > I suggest one more standard date/time operator, to divide one interval
> > by another with numeric (or float, for example) result.
>
> You'd have to define exactly what that means, which seems a little
> tricky for incommensurate intervals.  For instance what is the
> result of '1 month' / '1 day' ?
>
>                         regards, tom lane
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org
>


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: odd convert_from bug
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Named vs Unnamed Partitions