Re: Question about timezones - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Question about timezones
Date
Msg-id 20041017152831.GC24658@svana.org
Whole thread Raw
In response to Re: Question about timezones  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Fri, Oct 08, 2004 at 09:52:00AM -0400, Tom Lane wrote:
> The infrastructure needed for this is finally present in 8.0, ie we have
> the timezone data available, but actually teaching AT TIME ZONE about it
> didn't get done in time.  Likely it will appear in 8.1 (especially if
> you step up and do the work ;-)).

I've had a look at the code that is in CVS and it looks like everything
needed is basically there. I think what's basically needed is a system
to keep track of tzname => struct state mappings, probably a hash of
some sort.

I'd consider creating a timezone preserving type, but it's not
necessary for what I'm doing. Is that library already built into 8.0?
If that's the case there is an opportunity to create a contrib module
that hooks into it.

Hmm...
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment

pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: timezone abbreviation in timestamp string input
Next
From: Tom Lane
Date:
Subject: Re: timezone abbreviation in timestamp string input