Re: Question about timezones

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Steven Klassen <sklassen(at)commandprompt(dot)com>, Postgresql General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Question about timezones
Date: 2004-10-17 15:28:31
Message-ID: 20041017152831.GC24658@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)svana(dot)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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-10-17 17:45:19 Re: timezone abbreviation in timestamp string input
Previous Message Michael Fuhr 2004-10-17 14:48:28 Re: timezone abbreviation in timestamp string input