From: | "Warren Turkal" <wturkal(at)gmail(dot)com> |
---|---|
To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "Brendan Jurd" <direvus(at)gmail(dot)com>, Ilya А(dot) Кovalenko <shadow(at)oganer(dot)net>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: operator suggest " interval / interval = numeric" |
Date: | 2008-01-10 07:25:12 |
Message-ID: | 7fdf8c4d0801092325x5dfef294s831b7ad7dd9e6a3d@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Jan 9, 2008 10:00 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Really? I think you've confused some unimplemented decorative syntax
> with what the underlying datatype will or won't do.
Fair enough. The underlying type certainly will do it since it works
without the opt_interval.
> > This is inconsistent. I would like to ultimately not allow operations
> > on interval combinations that are not allowed by the SQL standard.
>
> The spec's approach to datetime operations in general is almost totally
> brain-dead, and so you won't find a lot of support around here for hewing
> to the straight-and-narrow-spec-compliance approach. If they have not
> even heard of daylight-savings time, how can anyone credit them with any
> meaningful contact with the real world? We'll cite the spec where it
> suits us, but in this area "the spec says you can't do that" carries
> very little weight.
DST in the sense of doing arithmetic on timestamps? I was not aware
that the standard defined the result in such a way that precluded
allowing for DST and leap seconds and whatever other time warps you
wanted to allow in your database. In fact, looking over the draft of
the 2003 standard looks like it takes DST into consideration just
fine. It just doesn't allow the use of a non-constant timezone
identifier, which admittidly would be useful.
> Or were you planning to lobby for removal of our DST support, too?
No. The DST support makes sense.
wt
From | Date | Subject | |
---|---|---|---|
Next Message | Warren Turkal | 2008-01-10 07:30:42 | Re: flex/bison output wrongly created in the source directory |
Previous Message | Simon Riggs | 2008-01-10 07:25:00 | Re: Dynamic Partitioning using Segment Visibility Maps |