1. 24 Jan, 2017 14 commits
  2. 23 Jan, 2017 11 commits
  3. 22 Jan, 2017 3 commits
    • Tom Lane's avatar
      Relocate static function declarations to be after typedefs in jsonfuncs.c. · 90992e0e
      Tom Lane authored
      Project style is to put things in this order, for the good and sufficient
      reason that you often need the typedefs in the function declarations.
      There already was one function declaration that needed a typedef, which
      was randomly placed away from all the other static function declarations
      in consequence.  And the submitted patch for better json_populate_record
      functionality jumped through even more hoops in order to preserve this
      bad idea.
      
      This patch only moves lines from point A to point B, no other changes.
      90992e0e
    • Tom Lane's avatar
      Remove no-longer-needed loop in ExecGather(). · 0a8b9d3b
      Tom Lane authored
      Coverity complained quite properly that commit ea15e186 had introduced
      unreachable code into ExecGather(); to wit, it was no longer possible to
      iterate the final for-loop more or less than once.  So remove the for().
      
      In passing, clean up a couple of comments, and make better use of a local
      variable.
      0a8b9d3b
    • Peter Eisentraut's avatar
      Add missing break · 8f164e1e
      Peter Eisentraut authored
      8f164e1e
  4. 21 Jan, 2017 3 commits
    • Peter Eisentraut's avatar
      b4800867
    • Tom Lane's avatar
      Fix cross-shlib linking in temporary installs on HPUX 10. · d2ab1176
      Tom Lane authored
      Turns out this has been broken for years and we'd not noticed.  The one
      case that was getting exercised in the buildfarm, or probably anywhere
      else, was postgres_fdw.sl's reference to libpq.sl; and it turns out that
      that was always going to libpq.sl in the actual installation directory
      not the temporary install.  We'd not noticed because the buildfarm script
      does "make install" before it tests contrib.  However, the recent addition
      of a logical-replication test to the core regression scripts resulted in
      trying to use libpqwalreceiver.sl before "make install" happens, and that
      failed for lack of finding libpq.sl, as shown by failures on buildfarm
      members gaur and pademelon.
      
      There are two changes needed to fix it: the magic environment variable to
      specify shlib search path at runtime is SHLIB_PATH not LD_LIBRARY_PATH,
      and the shlib link command needs to specify the +s switch else the library
      will not honor SHLIB_PATH.
      
      I'm not quite sure why buildfarm members anole and gharial (HPUX 11) didn't
      show the same failure.  Consulting man pages on the web says that HPUX 11
      honors both LD_LIBRARY_PATH and SHLIB_PATH, which would explain half of it,
      and the rather confusing wording I've been able to find suggests that +s
      might effectively be the default in HPUX 11.  But it seems at least as
      likely that there's just a libpq.so installed in /usr/lib on that machine;
      as long as it's not too ancient, that would satisfy the test.  In any case
      I do not think this patch will break HPUX 11.
      
      At the moment I don't see a need to back-patch this, since it only matters
      for testing purposes, not to mention that HPUX 10 is probably dead in the
      real world anyway.
      d2ab1176
    • Peter Eisentraut's avatar
      Move some things from builtins.h to new header files · f21a563d
      Peter Eisentraut authored
      This avoids that builtins.h has to include additional header files.
      f21a563d
  5. 20 Jan, 2017 9 commits