From: | Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Storage sizes for dates/times (documentation bug?) |
Date: | 2008-04-16 19:40:45 |
Message-ID: | 20080416194045.GB7478@merkur.hilbert.loc |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Wed, Apr 16, 2008 at 08:21:15PM +0100, Sam Mason wrote:
> Hum, what's an "EMR"?
Sorry, Electronic Medical Record.
> Why not do:
>
> CREATE TYPE tstz AS ( ts TIMESTAMP WITH TIME ZONE, tz TEXT );
>
> And use this instead?
That should work. At the time (a couple of years ago) I
wasn't aware of all the implications. Indexability, operator
availability, computability ... I'm still not sure I'd know
all the pitfalls.
> What sort of machines do this? With computers I've used, if its time
> zone is set to the local time of some specific location then yes it
> will. If you set it to some specific offset then no it won't. These
> are independant cases, and not the one I was drawing your attention to
> above. These cases are also independant of the original problem as
> well.
All true. I misunderstood what you said.
> > Basically, akin to "there's no such thing as plain text"
> > there should be "there's no such thing as a timezone-less
> > timestamp".
> Or maybe, a programming language should allow you to define your own
> abstractions if the defaults don't fit.
Surely so and both Python and PostgreSQL have both been very
helpful in this regard.
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Broersma | 2008-04-16 20:40:56 | ALTER TABLE DDL Triggers? |
Previous Message | Alvaro Herrera | 2008-04-16 19:27:33 | Re: "vacuum" and "cluster" |