1. 16 Mar, 2017 4 commits
    • Stephen Frost's avatar
      Be more careful about signed vs. unsigned char · cccbddeb
      Stephen Frost authored
      The buildfarm has reminded me that not all systems consider char to be
      signed and we need to be explicit.  Adjust the various bits of mac8.c
      for what we intend, mostly using casts to unsigned char as suggested by
      Tom, and adjust the tests for valid input accordingly.  Explicitly make
      the hexlookup table signed as it's useful to use -1 there to indicate an
      invalid value.
      cccbddeb
    • Stephen Frost's avatar
      Clean up overly paranoid checks in mac8.c · 7821f722
      Stephen Frost authored
      Andres' compiler points out, quite correctly, that there's no need for
      some of the overly paranoid checks which were put into mac8.c.  Remove
      those, as they're useless, add some comments and make a few other minor
      improvements- reduce the size of hexlookup by making it a char array
      instead of an int array, and pass in the ptr location directly instead
      of making hex2_to_uchar re-calculate the location based off the offset
      every time.
      7821f722
    • Robert Haas's avatar
      Port single-page btree vacuum logic to hash indexes. · 6977b8b7
      Robert Haas authored
      This is advantageous for hash indexes for the same reasons it's good
      for btrees: it accelerates space recycling, reducing bloat.
      
      Ashutosh Sharma, reviewed by Amit Kapila and by me.  A bit of
      additional hacking by me.
      
      Discussion: http://postgr.es/m/CAE9k0PkRSyzx8dOnokEpUi2A-RFZK72WN0h9DEMv_ut9q6bPRw@mail.gmail.com
      6977b8b7
    • Andres Freund's avatar
      Specify bindir in pg_isolation_regress_installcheck. · 2038bf41
      Andres Freund authored
      It appears dcae5fac forgot to add it to
      pg_isolation_regress_installcheck, while it was added to
      pg_regress_installcheck.  It seems to so far have escaped notice,
      because buildfarm animals requiring it, didn't actually use
      pg_isolation_regress_installcheck anywhere - that changed with
      60f826c5, triggering failures on narwhal and frogmouth.
      
      I've decided to not, for now at least, backpatch this, because the
      relevant invocations look quite different in the back branches.  Seems
      quite possible that we'll want to backport 60f826c5 as a whole if
      it proves stable.
      
      Discussion: https://postgr.es/m/20170315174003.3dyl4teashdwgblh@alap3.anarazel.de
      2038bf41
  2. 15 Mar, 2017 14 commits
  3. 14 Mar, 2017 17 commits
  4. 13 Mar, 2017 5 commits
    • Tom Lane's avatar
      Fix busted markup. · 0c87cd00
      Tom Lane authored
      Oversight in commit 9ca5c872.  Per buildfarm.
      0c87cd00
    • Alvaro Herrera's avatar
      Silence unused variable compiler warning · a9c074ba
      Alvaro Herrera authored
      Fallout from fcec6caa: mark a variable in
      set_tablefunc_size_estimates as used for asserts only.
      
      Also, the planner_rte_fetch() call is pointless with assertions
      disabled, so enclose it in a USE_ASSERT_CHECKING #ifdef; fix the same
      problem in set_subquery_size_estimates().
      
      First problem noted by David Rowley, whose compiler is noisier than mine
      in this regard.
      a9c074ba
    • Tom Lane's avatar
      Add a "void *" passthrough pointer for psqlscan.l's callback functions. · 895e36bb
      Tom Lane authored
      The immediate motivation for this is to provide clean infrastructure
      for the proposed \if...\endif patch for psql; but it seems like a good
      thing to have even if that patch doesn't get in.  Previously the callback
      functions could only make use of application-global state, which is a
      pretty severe handicap.
      
      For the moment, the pointer is only passed through to the get_variable
      callback function.  I considered also passing it to the write_error
      callback, but for now let's not.  Neither psql nor pgbench has a use
      for that, and in the case of psql we'd have to invent a separate wrapper
      function because we would certainly not want to change the signature of
      psql_error().
      
      Discussion: https://postgr.es/m/10108.1489418309@sss.pgh.pa.us
      895e36bb
    • Tom Lane's avatar
      Remove unnecessary dependency on statement_timeout in prepared_xacts test. · 1c7a66a8
      Tom Lane authored
      Rather than waiting around for statement_timeout to expire, we can just
      try to take the table's lock in nowait mode.  This saves some fraction
      under 4 seconds when running this test with prepared xacts available,
      and it guards against timeout-expired-anyway failures on very slow
      machines when prepared xacts are not available, as seen in a recent
      failure on axolotl for instance.
      
      This approach could fail if autovacuum were to take an exclusive lock
      on the test table concurrently, but there's no reason for it to do so.
      
      Since the main point here is to improve stability in the buildfarm,
      back-patch to all supported branches.
      1c7a66a8
    • Michael Meskes's avatar
      Document two phase commit commands in ecpg docu. · 9ca5c872
      Michael Meskes authored
      Patch by Masahiko Sawada
      9ca5c872