Skip site navigation (1) Skip section navigation (2)

pgsql-server: Adjust our timezone library to use pg_time_t (typedef'd as

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server: Adjust our timezone library to use pg_time_t (typedef'd as
Date: 2004-06-03 02:08:07
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committerspgsql-hackers
Log Message:
Adjust our timezone library to use pg_time_t (typedef'd as int64) in
place of time_t, as per prior discussion.  The behavior does not change
on machines without a 64-bit-int type, but on machines with one, which
is most, we are rid of the bizarre boundary behavior at the edges of
the 32-bit-time_t range (1901 and 2038).  The system will now treat
times over the full supported timestamp range as being in your local
time zone.  It may seem a little bizarre to consider that times in
4000 BC are PST or EST, but this is surely at least as reasonable as
propagating Gregorian calendar rules back that far.

I did not modify the format of the zic timezone database files, which
means that for the moment the system will not know about daylight-savings
periods outside the range 1901-2038.  Given the way the files are set up,
it's not a simple decision like 'widen to 64 bits'; we have to actually
think about the range of years that need to be supported.  We should
probably inquire what the plans of the upstream zic people are before
making any decisions of our own.

Modified Files:
        xact.c (r1.167 -> r1.168)
        xlog.c (r1.145 -> r1.146)
        bootparse.y (r1.68 -> r1.69)
        bootscanner.l (r1.34 -> r1.35)
        bootstrap.c (r1.182 -> r1.183)
        geqo_main.c (r1.44 -> r1.45)
        bgwriter.c (r1.2 -> r1.3)
        pgstat.c (r1.73 -> r1.74)
        postmaster.c (r1.401 -> r1.402)
        freelist.c (r1.43 -> r1.44)
        postgres.c (r1.417 -> r1.418)
        date.c (r1.98 -> r1.99)
        datetime.c (r1.129 -> r1.130)
        nabstime.c (r1.122 -> r1.123)
        timestamp.c (r1.107 -> r1.108)
        elog.c (r1.139 -> r1.140)
        pg_control.h (r1.14 -> r1.15)
        vacuum.h (r1.53 -> r1.54)
        pgtime.h (r1.1 -> r1.2)
        datetime.h (r1.48 -> r1.49)
        nabstime.h (r1.42 -> r1.43)
        horology.out (r1.49 -> r1.50)
        timestamp.out (r1.26 -> r1.27)
        timestamptz.out (r1.15 -> r1.16)
        localtime.c (r1.6 -> r1.7)
        pgtz.c (r1.16 -> r1.17)
        strftime.c (r1.3 -> r1.4)
        zic.c (r1.7 -> r1.8)


pgsql-hackers by date

Next:From: Andrew DunstanDate: 2004-06-03 02:10:13
Subject: Re: Default Locale in initdb
Previous:From: pgsqlDate: 2004-06-03 01:53:46
Subject: Re: Default Locale in initdb

pgsql-committers by date

Next:From: Christopher Kings-LynneDate: 2004-06-03 02:23:06
Subject: Re: pgsql-server: Adjust our timezone library to use pg_time_t (typedef'd
Previous:From: Bruce MomjianDate: 2004-06-03 00:25:47
Subject: pgsql-server: Win32 regression fixes: .

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group