pgsql: Sync our copy of the timezone library with IANA tzcode master.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Sync our copy of the timezone library with IANA tzcode master.
Date: 2017-09-22 04:04:42
Message-ID: E1dvFCk-00058b-MC@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Sync our copy of the timezone library with IANA tzcode master.

This patch absorbs a few unreleased fixes in the IANA code.
It corresponds to commit 2d8b944c1cec0808ac4f7a9ee1a463c28f9cd00a
in https://github.com/eggert/tz. Non-cosmetic changes include:

TZDEFRULESTRING is updated to match current US DST practice,
rather than what it was over ten years ago. This only matters
for interpretation of POSIX-style zone names (e.g., "EST5EDT"),
and only if the timezone database doesn't include either an exact
match for the zone name or a "posixrules" entry. The latter
should not be true in any current Postgres installation, but
this could possibly matter when using --with-system-tzdata.

Get rid of a nonportable use of "++var" on a bool var.
This is part of a larger fix that eliminates some vestigial
support for consecutive leap seconds, and adds checks to
the "zic" compiler that the data files do not specify that.

Remove a couple of ancient compatibility hacks. The IANA
crew think these are obsolete, and I tend to agree. But
perhaps our buildfarm will think different.

Back-patch to all supported branches, in line with our policy
that all branches should be using current IANA code. Before v10,
this includes application of current pgindent rules, to avoid
whitespace problems in future back-patches.

Discussion: https://postgr.es/m/E1dsWhf-0000pT-F9@gemulon.postgresql.org

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e25f4401dad7829463efff1f4655f2c6d6b076ff

Modified Files
--------------
src/timezone/localtime.c | 138 ++++++++++++++----------------
src/timezone/private.h | 27 ++----
src/timezone/strftime.c | 50 ++++++-----
src/timezone/tzfile.h | 8 +-
src/timezone/zic.c | 217 +++++++++++++++++++++++++++++------------------
5 files changed, 236 insertions(+), 204 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fabien COELHO 2017-09-22 05:20:03 Re: pgsql: Provide a test for variable existence in psql
Previous Message Thomas Munro 2017-09-22 02:37:38 Re: [HACKERS] Re: pgsql: Make new crash restart test a bit more robust.