1. 22 Sep, 2017 6 commits
    • Tom Lane's avatar
      Mop-up for commit 85feb77a. · ed87e198
      Tom Lane authored
      Adjust commentary in regc_pg_locale.c to remove mention of the possibility
      of not having <wctype.h> functions, since we no longer consider that.
      
      Eliminate duplicate code in wparser_def.c by generalizing the p_iswhat
      macro to take a parameter saying what to return for non-ASCII chars
      in C locale.  (That's not really a consequence of the
      USE_WIDE_UPPER_LOWER-ectomy, but I noticed it while doing that.)
      ed87e198
    • Tom Lane's avatar
      Assume wcstombs(), towlower(), and sibling functions are always present. · 85feb77a
      Tom Lane authored
      These functions are required by SUS v2, which is our minimum baseline
      for Unix platforms, and are present on all interesting Windows versions
      as well.  Even our oldest buildfarm members have them.  Thus, we were not
      testing the "!USE_WIDE_UPPER_LOWER" code paths, which explains why the bug
      fixed in commit e6023ee7 escaped detection.  Per discussion, there seems
      to be no more real-world value in maintaining this option.  Hence, remove
      the configure-time tests for wcstombs() and towlower(), remove the
      USE_WIDE_UPPER_LOWER symbol, and remove all the !USE_WIDE_UPPER_LOWER code.
      There's not actually all that much of the latter, but simplifying the #if
      nests is a win in itself.
      
      Discussion: https://postgr.es/m/20170921052928.GA188913@rfd.leadboat.com
      85feb77a
    • Peter Eisentraut's avatar
      Fix build with !USE_WIDE_UPPER_LOWER · e6023ee7
      Peter Eisentraut authored
      The placement of the ifdef blocks in formatting.c was pretty bogus, so
      the code failed to compile if USE_WIDE_UPPER_LOWER was not defined.
      Reported-by: default avatarPeter Geoghegan <pg@bowt.ie>
      Reported-by: default avatarNoah Misch <noah@leadboat.com>
      e6023ee7
    • Alvaro Herrera's avatar
      Document further existing locks as wait events · 885cab58
      Alvaro Herrera authored
      Reported-by: Jeremy Schneider
      Author: Michael Paquier
      Discussion: https://postgr.es/m/CA+fnDAZaPCwfY8Lp-pfLnUGFAXRu1VfLyRgdup-L-kwcBj8MqQ@mail.gmail.com
      885cab58
    • Tom Lane's avatar
      Sync our copy of the timezone library with IANA tzcode master. · 47f849a3
      Tom Lane authored
      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
      47f849a3
    • Tom Lane's avatar
      Revert "Fix bool/int type confusion" · a890432a
      Tom Lane authored
      This reverts commit 0ec2e908.
      We'll use the upstream (IANA) fix instead.
      a890432a
  2. 21 Sep, 2017 4 commits
  3. 20 Sep, 2017 13 commits
  4. 19 Sep, 2017 14 commits
  5. 18 Sep, 2017 3 commits