1. 27 Jun, 2011 3 commits
    • Robert Haas's avatar
      Avoid having two copies of the HOT-chain search logic. · 4da99ea4
      Robert Haas authored
      It's been like this since HOT was originally introduced, but the logic
      is complex enough that this is a recipe for bugs, as we've already
      found out with SSI.  So refactor heap_hot_search_buffer() so that it
      can satisfy the needs of index_getnext(), and make index_getnext() use
      that rather than duplicating the logic.
      
      This change was originally proposed by Heikki Linnakangas as part of a
      larger refactoring oriented towards allowing index-only scans.  I
      extracted and adjusted this part, since it seems to have independent
      merit.  Review by Jeff Davis.
      4da99ea4
    • Peter Eisentraut's avatar
      8c8745b2
    • Peter Eisentraut's avatar
      Remove redundant DEF_PGPORT handling · 4635d3c5
      Peter Eisentraut authored
      DEF_PGPORT already comes in from pg_config.h, so we don't need to pass
      it in again with a -D option.  Apparently a leftover from the shell
      script conversion.
      4635d3c5
  2. 26 Jun, 2011 7 commits
  3. 25 Jun, 2011 1 commit
  4. 24 Jun, 2011 1 commit
  5. 23 Jun, 2011 5 commits
  6. 22 Jun, 2011 16 commits
  7. 21 Jun, 2011 6 commits
    • Tom Lane's avatar
      Minor editing for README-SSI. · a3290f65
      Tom Lane authored
      Fix some grammatical issues, try to clarify a couple of proofs, make the
      terminology more consistent.
      a3290f65
    • Peter Eisentraut's avatar
      Message style and spelling improvements · e2a0cb1a
      Peter Eisentraut authored
      e2a0cb1a
    • Tom Lane's avatar
      Apply upstream fix for blowfish signed-character bug (CVE-2011-2483). · ca59dfa6
      Tom Lane authored
      A password containing a character with the high bit set was misprocessed
      on machines where char is signed (which is most).  This could cause the
      preceding one to three characters to fail to affect the hashed result,
      thus weakening the password.  The result was also unportable, and failed
      to match some other blowfish implementations such as OpenBSD's.
      
      Since the fix changes the output for such passwords, upstream chose
      to provide a compatibility hack: password salts beginning with $2x$
      (instead of the usual $2a$ for blowfish) are intentionally processed
      "wrong" to give the same hash as before.  Stored password hashes can
      thus be modified if necessary to still match, though it'd be better
      to change any affected passwords.
      
      In passing, sync a couple other upstream changes that marginally improve
      performance and/or tighten error checking.
      
      Back-patch to all supported branches.  Since this issue is already
      public, no reason not to commit the fix ASAP.
      ca59dfa6
    • Heikki Linnakangas's avatar
      Adjust the alternative expected output file for prepared_xacts test case, · 38c0e721
      Heikki Linnakangas authored
      used when max_prepared_transactions=0, for the recent changes in the test
      case.
      38c0e721
    • Heikki Linnakangas's avatar
      Fix bug in PreCommit_CheckForSerializationFailure. A transaction that has · 1eea8e8a
      Heikki Linnakangas authored
      already been marked as PREPARED cannot be killed. Kill the current
      transaction instead.
      
      One of the prepared_xacts regression tests actually hits this bug. I
      removed the anomaly from the duplicate-gids test so that it fails in the
      intended way, and added a new test to check serialization failures with
      a prepared transaction.
      
      Dan Ports
      1eea8e8a
    • Heikki Linnakangas's avatar
      Fix bug introduced by recent SSI patch to merge ROLLED_BACK and · 7cb2ff96
      Heikki Linnakangas authored
      MARKED_FOR_DEATH flags into one. We still need the ROLLED_BACK flag to
      mark transactions that are in the process of being rolled back. To be
      precise, ROLLED_BACK now means that a transaction has already been
      discounted from the count of transactions with the oldest xmin, but not
      yet removed from the list of active transactions.
      
      Dan Ports
      7cb2ff96
  8. 20 Jun, 2011 1 commit