Re: Storage sizes for dates/times (documentation bug?)

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 15:09:56
Message-ID: 20080416150956.GC4138@merkur.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Apr 15, 2008 at 03:31:46PM +0100, Sam Mason wrote:

> But I was under the impression that you didn't want any time zone
> information.
Wrong impression.

> You wanted to know that that an appointment was at 3PM at
> the patients local time,
... plus "what does local time mean".

> attempting to correct this for the local time
> zone of any analyst is invalid.
Sure, there can be valid and invalid normalisations.

> I must be missing something then, can you explain why the original time
> zone matters?

a) I want to be able to display when a patient's appointment
happened in local time.

b) I must be able to aggregate appointments from different
time zones into a coherent EMR. For that I need to be able
to map them onto, say, UTC.

Taken together this could be served nicely by a UTC-storing,
local-tz-remembering timestamp.

> If you actually hardcoded your timezone as
> GMT+6, or whatever, then yes it may be different. But only if you went
> around at midnight March 31st, changing computers to be GMT+5
The machines do that by themselves.

> In some cases yes I'd agree, but I have a feeling the number of cases is
> surprisingly small in practise.
The sampling may not be that large but when the problem is
there it is painful.

Basically, akin to "there's no such thing as plain text"
there should be "there's no such thing as a timezone-less
timestamp".

Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Karsten Hilbert 2008-04-16 15:33:19 Re: Storage sizes for dates/times (documentation bug?)
Previous Message Jimmy Choi 2008-04-16 15:09:09 "vacuum" and "cluster"