postgresql/src/timezone
Bruce Momjian f4c4f1ce52 >> Do you agree that using a hashtable for it in general is a good idea
>> assuming this sideeffect is removed, though?
>
>I have no problem with the hashtable, only with preloading it with
>everything.  What I'd like to see is that the table inherited at fork()
>contains just the data for the default timezone.  (At least in the
>normal case where that setting hasn't been changed since postmaster
>start.)

Here's a patch doing this. Changes score_timezone not to use pg_tzset(),
and thus not loading all the zones in the cache. The actual timezone
being picked will be set using set_global_timezone() which in turn calls
pg_tzset() and loads it in the cache.

Magnus Hagander
2005-06-15 00:09:26 +00:00
..
data Sync timezone data with latest zic database (dated Oct 11 2004). 2004-10-24 15:09:57 +00:00
ialloc.c pgindent did a pretty awful job on the timezone code, particularly with 2004-05-21 20:59:10 +00:00
localtime.c Attached patch gets rid of the global timezone in the following steps: 2005-04-19 03:13:59 +00:00
Makefile make clean must remove zic$(X) for Windows, per Magnus. 2004-12-31 19:01:54 +00:00
pgtz.c >> Do you agree that using a hashtable for it in general is a good idea 2005-06-15 00:09:26 +00:00
pgtz.h Attached patch gets rid of the global timezone in the following steps: 2005-04-19 03:13:59 +00:00
private.h Properly undef _(x) gettext macro. 2005-02-23 04:34:21 +00:00
README Update RELEASE_CHANGES to mention updating the timezone database as 2004-10-24 15:01:54 +00:00
scheck.c pgindent did a pretty awful job on the timezone code, particularly with 2004-05-21 20:59:10 +00:00
strftime.c Attached patch gets rid of the global timezone in the following steps: 2005-04-19 03:13:59 +00:00
tzfile.h pgindent did a pretty awful job on the timezone code, particularly with 2004-05-21 20:59:10 +00:00
zic.c Attached patch gets rid of the global timezone in the following steps: 2005-04-19 03:13:59 +00:00

This is a PostgreSQL adapted version of the timezone library
from:

	ftp://elsie.nci.nih.gov/pub/tzcode*.tar.gz

The data files under data/ are an exact copy of the latest data set
from

	ftp://elsie.nci.nih.gov/pub/tzdata*.tar.gz

Since time zone rules change frequently in some parts of the world,
we should endeavor to update the data files before each PostgreSQL
release.