postgresql/src/timezone
Tom Lane 0169c354bf Arrange to install a "posixrules" entry in our timezone database, so that
POSIX-style timezone specs that don't exactly match any database entry will
be treated as having correct USA DST rules.  Also, document that this can
be changed if you want to use some other DST rules with a POSIX zone spec.

We could consider changing localtime.c's TZDEFRULESTRING, but since that
facility can only deal with one DST transition rule, it seems fairly useless
now; might as well just plan to override it using a "posixrules" entry.

Backpatch as far as 8.0.  There isn't much we can do in 7.x ... either your
libc gets it right, or it doesn't.
2007-03-14 17:38:06 +00:00
..
data Update timezone data to tzdata2006p zic distribution. It seems Western 2006-11-28 19:37:03 +00:00
tznames Replace useless uses of := by = in makefiles. 2007-02-09 15:56:00 +00:00
Makefile Arrange to install a "posixrules" entry in our timezone database, so that 2007-03-14 17:38:06 +00:00
README Remove hard-wired lists of timezone abbreviations in favor of providing 2006-07-25 03:51:23 +00:00
ialloc.c Squelch some VC++ compiler warnings. Mark float literals with the "f" 2007-01-26 17:45:42 +00:00
localtime.c Fix up timetz input so that a date is required only when the specified 2006-10-18 16:43:14 +00:00
pgtz.c StrNCpy -> strlcpy (not complete) 2007-02-10 14:58:55 +00:00
pgtz.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
private.h Properly undef _(x) gettext macro. 2005-02-23 04:34:21 +00:00
scheck.c Standard pgindent run for 8.1. 2005-10-15 02:49:52 +00:00
strftime.c Remove 576 references of include files that were not needed. 2006-07-14 14:52:27 +00:00
tzfile.h Standard pgindent run for 8.1. 2005-10-15 02:49:52 +00:00
zic.c Wording cleanup for error messages. Also change can't -> cannot. 2007-02-01 19:10:30 +00:00

README

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.

At each update, we should check if time zone offsets have changed.
Just search for the current or previous year and see what has changed.
Sometimes a country changes its time zone offsets, for example Georgia
in 2004.  Just grepping in the zic database files for 2004 is enough to
spot such a change.  Then the files under tznames/ should be updated.