aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-03-14 17:38:22 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-03-14 17:38:22 +0000
commit45ca0be21b082fea55f717d66306c6aa39eb2e16 (patch)
tree1a437abfee23effde60b1468fe6a25dcbb0d9651 /src
parent3cda014bf435c616bb78de45b46b199add79c409 (diff)
downloadpostgresql-45ca0be21b082fea55f717d66306c6aa39eb2e16.tar.gz
postgresql-45ca0be21b082fea55f717d66306c6aa39eb2e16.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/timezone/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/timezone/Makefile b/src/timezone/Makefile
index a171035d8a8..2851558d300 100644
--- a/src/timezone/Makefile
+++ b/src/timezone/Makefile
@@ -4,7 +4,7 @@
# Makefile for the timezone library
# IDENTIFICATION
-# $PostgreSQL: pgsql/src/timezone/Makefile,v 1.22 2005/07/06 21:40:09 momjian Exp $
+# $PostgreSQL: pgsql/src/timezone/Makefile,v 1.22.2.1 2007/03/14 17:38:22 tgl Exp $
#
#-------------------------------------------------------------------------
@@ -25,6 +25,10 @@ TZDATA := africa antarctica asia australasia europe northamerica southamerica \
pacificnew etcetera factory backward systemv solar87 solar88 solar89
TZDATAFILES := $(TZDATA:%=$(srcdir)/data/%)
+# which zone should determine the DST rules (not the specific UTC offset!)
+# for POSIX-style timezone specs
+POSIXRULES = US/Eastern
+
all: SUBSYS.o submake-libpgport zic
SUBSYS.o: $(OBJS)
@@ -34,7 +38,7 @@ zic: $(ZICOBJS)
$(CC) $(CFLAGS) $(ZICOBJS) $(LDFLAGS) $(LIBS) -o $@$(X)
install: all installdirs
- ./zic -d $(DESTDIR)$(datadir)/timezone $(TZDATAFILES)
+ ./zic -d $(DESTDIR)$(datadir)/timezone -p $(POSIXRULES) $(TZDATAFILES)
installdirs:
$(mkinstalldirs) $(DESTDIR)$(datadir)