From: | Christophe Pettus <xof(at)thebuild(dot)com> |
---|---|
To: | hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Range types |
Date: | 2009-12-16 00:08:43 |
Message-ID: | 53DC35FA-24E2-4997-A81C-1EA1F163F689@thebuild.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Dec 15, 2009, at 3:40 PM, Jeff Davis wrote:
> Based on the premise that timestamps are a continuous value and the
> granularity/precision is entirely an implementation detail, you're
> right. But I disagree with the premise, at least in some cases that I
> think are worthwhile.
The argument is, in essence:
DECIMAL is continuous.
DECIMAL(10,3) is discrete.
timestamptz in general is a continuous value (unless we're talking
Planck times :) ). There is no way for us to guarantee that
next(timestamptz) will have the same value across all platforms; its
epsilon is platform dependent.
However, if we specify a scale on timestamptz, it becomes much more
useful. Just making up a syntax, if we had timestamptz(milliseconds),
then it's discrete and we know what next(timestamptz(milliseconds)) is.
But in the current implementation, the only way I can see making that
work is if we specify a scale for timestamptz, and that strikes me as
a big change to its semantics.
--
-- Christophe Pettus
xof(at)thebuild(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Takahiro Itagaki | 2009-12-16 00:11:15 | Re: New VACUUM FULL |
Previous Message | decibel | 2009-12-16 00:06:42 | Re: Range types |