1. 12 Nov, 2019 4 commits
    • Peter Geoghegan's avatar
      Teach datum_image_eq() about cstring datums. · 8c951687
      Peter Geoghegan authored
      Bring datum_image_eq() in line with datumIsEqual() by adding support for
      comparing cstring datums.
      
      An upcoming patch that adds deduplication to the nbtree AM will use
      datum_image_eq().  datum_image_eq() will need to work with all datatypes
      that can be used as the storage type of a B-Tree index column, including
      cstring.  (cstring is used as the storage type for columns of type
      "name" as a space-saving optimization.)
      
      Discussion: https://postgr.es/m/CAH2-Wzn3Ee49Gmxb7V1VJ3-AC8fWn-Fr8pfWQebHe8rYRxt5OQ@mail.gmail.com
      8c951687
    • Tom Lane's avatar
      Fix ecpglib.h to declare bool consistently with c.h. · 7a0574b5
      Tom Lane authored
      This completes the task begun in commit 1408d5d8, to synchronize
      ECPG's exported definitions with the definition of bool used by
      c.h (and, therefore, the one actually in use in the ECPG library).
      On practically all modern platforms, ecpglib.h will now just
      include <stdbool.h>, which should surprise nobody anymore.
      That removes a header-inclusion-order hazard for ECPG clients,
      who previously might get build failures or unexpected behavior
      depending on whether they'd included <stdbool.h> themselves,
      and if so, whether before or after ecpglib.h.
      
      On platforms where sizeof(_Bool) is not 1 (only old PPC-based
      Mac systems, as far as I know), things are still messy, as
      inclusion of <stdbool.h> could still break ECPG client code.
      There doesn't seem to be any clean fix for that, and given the
      probably-negligible population of users who would care anymore,
      it's not clear we should go far out of our way to cope with it.
      This change at least fixes some header-inclusion-order hazards
      for our own code, since c.h and ecpglib.h previously disagreed
      on whether bool should be char or unsigned char.
      
      To implement this with minimal invasion of ECPG client namespace,
      move the choice of whether to rely on <stdbool.h> into configure,
      and have it export a configuration symbol PG_USE_STDBOOL.
      
      ecpglib.h no longer exports definitions for TRUE and FALSE,
      only their lowercase brethren.  We could undo that if we get
      push-back about it.
      
      Ideally we'd back-patch this as far as v11, which is where c.h
      started to rely on <stdbool.h>.  But the odds of creating problems
      for formerly-working ECPG client code seem about as large as the
      odds of fixing any non-working cases, so we'll just do this in HEAD.
      
      Discussion: https://postgr.es/m/CAA4eK1LmaKO7Du9M9Lo=kxGU8sB6aL8fa3sF6z6d5yYYVe3BuQ@mail.gmail.com
      7a0574b5
    • Peter Eisentraut's avatar
      gitattributes: Add new file · de7c2d30
      Peter Eisentraut authored
      de7c2d30
    • Amit Kapila's avatar
      Make the order of the header file includes consistent in backend modules. · 14aec035
      Amit Kapila authored
      Similar to commits 7e735035 and dddf4cdc, this commit makes the order
      of header file inclusion consistent for backend modules.
      
      In the passing, removed a couple of duplicate inclusions.
      
      Author: Vignesh C
      Reviewed-by: Kuntal Ghosh and Amit Kapila
      Discussion: https://postgr.es/m/CALDaNm2Sznv8RR6Ex-iJO6xAdsxgWhCoETkaYX=+9DW3q0QCfA@mail.gmail.com
      14aec035
  2. 11 Nov, 2019 8 commits
  3. 09 Nov, 2019 6 commits
  4. 08 Nov, 2019 6 commits
  5. 07 Nov, 2019 9 commits
  6. 06 Nov, 2019 7 commits