1. 12 Mar, 2017 7 commits
    • Noah Misch's avatar
      Recommend wrappers of PG_DETOAST_DATUM_PACKED(). · 9d7726c2
      Noah Misch authored
      When commit 3e23b68d introduced
      single-byte varlena headers, its fmgr.h changes presented
      PG_GETARG_TEXT_PP() and PG_GETARG_TEXT_P() as equals.  Its postgres.h
      changes presented PG_DETOAST_DATUM_PACKED() and VARDATA_ANY() as the
      exceptional case.  Now, instead, firmly recommend PG_GETARG_TEXT_PP()
      over PG_GETARG_TEXT_P(); likewise for other ...PP() macros.  This shaves
      cycles and invites consistency of style.
      9d7726c2
    • Noah Misch's avatar
      Fix pg_file_write() error handling. · 944a026b
      Noah Misch authored
      Detect fclose() failures; given "ln -s /dev/full $PGDATA/devfull",
      "pg_file_write('devfull', 'x', true)" now fails as it should.  Don't
      leak a stream when fwrite() fails.  Remove a born-ineffective test that
      aimed to skip zero-length writes.  Back-patch to 9.2 (all supported
      versions).
      944a026b
    • Noah Misch's avatar
      Assume deconstruct_array() outputs are untoasted. · 2fd26b23
      Noah Misch authored
      In functions that issue a deconstruct_array() call, consistently use
      plain VARSIZE()/VARDATA() on the array elements.  Prior practice was
      divided between those and VARSIZE_ANY_EXHDR()/VARDATA_ANY().
      2fd26b23
    • Noah Misch's avatar
      Fix comment about length of text, bytea, etc. · 9e092646
      Noah Misch authored
      When commit 3e23b68d introduced
      single-byte varlena headers, it rendered this comment incomplete.
      9e092646
    • Tom Lane's avatar
      Add "break"s to make it clearer what will happen in a nested switch. · 766f7fd6
      Tom Lane authored
      This could only matter if the guessed_type variable had a value that wasn't
      a member of the PasswordType enum; but just in case, let's be sure that
      control falls out to reach the elog(ERROR) at the end of the function.
      Per gripe from Coverity.
      766f7fd6
    • Tom Lane's avatar
      Fix typo in initdb's SCRAM password processing. · 835cc113
      Tom Lane authored
      Noted by Coverity (a rather impressive catch).
      
      Michael Paquier
      835cc113
    • Tom Lane's avatar
      Remove dead code in nodeGatherMerge.c. · 5d3f7c57
      Tom Lane authored
      Coverity noted that the last line of gather_merge_getnext() was
      unreachable, since each arm of the preceding "if" ends in a "return".
      Drop it as an oversight.  In passing, improve some nearby comments.
      5d3f7c57
  2. 11 Mar, 2017 3 commits
  3. 10 Mar, 2017 23 commits
  4. 09 Mar, 2017 7 commits