1. 23 Dec, 2019 1 commit
    • Peter Geoghegan's avatar
      Update nbtree LP_DEAD item deletion comments. · fe97c61c
      Peter Geoghegan authored
      Comments about the consequences of clearing the BTP_HAS_GARBAGE page
      flag bit that apply only to VACUUM were added to code that deals with
      opportunistic deletion of LP_DEAD items by commit a760893d.  The same
      comment block was added to both _bt_delitems_vacuum() and
      _bt_delitems_delete().  Correct _bt_delitems_delete()'s copy of the
      comment block.
      
      _bt_delitems_delete() reliably deletes items that were found by caller
      to have their LP_DEAD bit set.  There is no question about whether or
      not unsetting the BTP_HAS_GARBAGE bit can miss some LP_DEAD items that
      were set recently.
      
      Also tweak a related section of the nbtree README.
      fe97c61c
  2. 22 Dec, 2019 2 commits
  3. 21 Dec, 2019 3 commits
    • Tom Lane's avatar
      In pgwin32_open, loop after ERROR_ACCESS_DENIED only if we can't stat. · 5406513e
      Tom Lane authored
      This fixes a performance problem introduced by commit 6d7547c2.
      ERROR_ACCESS_DENIED is returned in some other cases besides the
      delete-pending case considered by that commit; notably, if the
      given path names a directory instead of a plain file.  In that
      case we'll uselessly loop for 1 second before returning the
      failure condition.  That slows down some usage scenarios enough
      to cause test timeout failures on our Windows buildfarm critters.
      
      To fix, try to stat() the file, and sleep/loop only if that fails.
      It will fail in the delete-pending case, and also in the case where
      the deletion completed before we could stat(), so we have the cases
      where we want to loop covered.  In the directory case, the stat()
      should succeed, letting us exit without a wait.
      
      One case where we'll still wait uselessly is if the access-denied
      problem pertains to a directory in the given pathname.  But we don't
      expect that to happen in any performance-critical code path.
      
      There might be room to refine this further, but I'll push it now
      in hopes of making the buildfarm green again.
      
      Back-patch, like the preceding commit.
      
      Alexander Lakhin and Tom Lane
      
      Discussion: https://postgr.es/m/23073.1576626626@sss.pgh.pa.us
      5406513e
    • Bruce Momjian's avatar
      C comment: clarify why psql's help/exit/quit must alone · 4376fdba
      Bruce Momjian authored
      Document why no indentation and why no non-whitespace postfix is
      supported.
      
      Backpatch-through: master
      4376fdba
    • Bruce Momjian's avatar
      docs: clarify handling of column lists in COPY TO/FROM · 4cab43ec
      Bruce Momjian authored
      Previously it was unclear how COPY FROM handled cases where not all
      columns were specified, or if the order didn't match.
      
      Reported-by: pavlo.golub@gmail.com
      
      Discussion: https://postgr.es/m/157487729344.7213.14245726713444755296@wrigleys.postgresql.org
      
      Backpatch-through: 9.4
      4cab43ec
  4. 20 Dec, 2019 7 commits
  5. 19 Dec, 2019 9 commits
  6. 18 Dec, 2019 11 commits
  7. 17 Dec, 2019 7 commits