• T
    Adjust our timezone library to use pg_time_t (typedef'd as int64) in · 921d749b
    Tom Lane 提交于
    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.
    921d749b
pgstat.c 69.8 KB