1. 06 Jun, 2019 1 commit
  2. 05 Jun, 2019 4 commits
  3. 04 Jun, 2019 4 commits
  4. 03 Jun, 2019 5 commits
  5. 02 Jun, 2019 5 commits
    • Tom Lane's avatar
      Make cpluspluscheck more portable. · f4755a2c
      Tom Lane authored
      Teach it to scrape -I and -D switches from CPPFLAGS in Makefile.global.
      This is useful for testing on, eg, FreeBSD, where you won't get far
      without "-I/usr/local/include".
      
      Also, expand the set of blacklisted-for-unportability atomics headers,
      based on noting that arch-x86.h fails to compile on an ARM box.  The
      other ones I'd omitted seem to compile all right on architectures they
      don't belong to, but that's surely too shaky to rely on.  Let's do
      like we did for the src/include/port/ headers, and ignore all except
      the variant that's pulled in by the arch-independent header.
      f4755a2c
    • Tom Lane's avatar
      Clean up PL/Perl's handling of the _() macro. · 032627ee
      Tom Lane authored
      Perl likes to redefine the _() macro:
      
      #ifdef CAN_PROTOTYPE
      #define	_(args) args
      #else ...
      
      There was lots not to like about the way we dealt with this before:
      
      1. Instead of taking care of the conflict centrally in plperl.h, we
      expected every one of its ever-growing number of includers to do so.
      This is duplicative and error-prone in itself, plus it means that
      plperl.h fails to meet the expectation of being compilable standalone,
      resulting in macro-redefinition warnings in cpluspluscheck.
      
      2. We left _() with its Perl definition, meaning that if someone tried
      to use it in any Perl-related extension, it would silently fail to
      provide run-time translation.  I don't see any live bugs of this ilk,
      but it's clearly a hard-to-notice bug waiting to happen.
      
      So fix that by centralizing the cleanup logic, making it match what
      we're already doing for other macro conflicts with Perl.  Since we only
      expect plperl.h to be included by extensions not core code, we should
      redefine _() as dgettext() not gettext().
      032627ee
    • Tom Lane's avatar
      worker_spi needs a .gitignore file now. · 135063e6
      Tom Lane authored
      135063e6
    • Tom Lane's avatar
      Un-break ecpg tests for Windows. · 10a53cae
      Tom Lane authored
      Declaring a function "inline" still doesn't work with Windows compilers
      (C99? what's that?), unless the macro provided by pg_config.h is
      in-scope, which it is not in our ECPG test programs.  So the workaround
      I tried to use in commit 7640f931 doesn't work for Windows.  Revert
      the change in printf_hack.h, and instead just blacklist that file
      in cpluspluscheck --- since it's a not-installed test file, we don't
      really need to verify its C++ cleanliness anyway.
      10a53cae
    • Alvaro Herrera's avatar
      Increase test coverage for worker_spi by ∞% · 4b3f1dd7
      Alvaro Herrera authored
      This test module was not getting invoked, other than at compile time,
      limiting its usefulness -- and keeping its coverage at 0%.  Add a
      minimal regression test to ensure it runs on make check-world; this
      makes it 92% covered (line-wise), which seems sufficient.
      
      Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
      Reviewed-by: default avatarTom Lane <tgl@sss.pgh.pa.us>
      Discussion: https://postgr.es/m/20190529193256.GA17603@alvherre.pgsql
      4b3f1dd7
  6. 01 Jun, 2019 1 commit
  7. 31 May, 2019 9 commits
  8. 30 May, 2019 3 commits
  9. 29 May, 2019 3 commits
  10. 28 May, 2019 5 commits