Re: TODO-Item: full timezone names

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Kevin McArthur" <Kevin(at)StormTide(dot)ca>
Cc: "Joachim Wieland" <joe(at)mcknight(dot)de>, pgsql-patches(at)postgresql(dot)org
Subject: Re: TODO-Item: full timezone names
Date: 2006-06-01 17:17:16
Message-ID: 13585.1149182236@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

"Kevin McArthur" <Kevin(at)StormTide(dot)ca> writes:
> My vote is that you guys drop timetz completely.

I can already give you the final score on that one:
SQL standard 1, Kevin 0

The problem here is the same old bugaboo that the standard pretends
daylight-savings time doesn't exist. So we are in the standards
extension business to try to find semi-reasonable semantics for the
standard datatypes when faced with DST-aware timezone definitions.
But dropping a type required by the spec isn't going to happen.

I can however see a good argument for rejecting DST-dependent input
for timetz. We aren't required by the spec to accept that, and as
Kevin says it's just not well defined.

There was talk awhile ago of storing actual timezone identifiers of
some kind in timestamptz and timetz values. If that ever gets done
then I think '16:40 America/New_York' would be a useful value of
timetz --- for instance, "date plus timetz" could yield a meaningful
timestamptz. But given our current limited implementation of timetz,
there's a lot to be said for rejecting DST-dependent input.

regards, tom lane

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Joachim Wieland 2006-06-01 17:36:34 Re: TODO-Item: full timezone names
Previous Message Kevin McArthur 2006-06-01 16:45:51 Re: TODO-Item: full timezone names