Re: operator suggest " interval / interval = numeric"

From: "Warren Turkal" <wturkal(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Ilya А(dot) Кovalenko <shadow(at)oganer(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: operator suggest " interval / interval = numeric"
Date: 2008-01-09 23:27:26
Message-ID: 7fdf8c4d0801091527x7e7fce24mcf77d4f939619390@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> "Ilya A. Kovalenko" <shadow(at)oganer(dot)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
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2008-01-09 23:34:24 Re: Named vs Unnamed Partitions
Previous Message Andrew Dunstan 2008-01-09 23:22:26 odd convert_from bug