1. 27 Jun, 2011 1 commit
  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 3 commits
    • Tom Lane's avatar
      Fix missed use of "cp -i" in an example, per Fujii Masao. · 31e8ab4d
      Tom Lane authored
      Also be more careful about markup: use & not just &.
      31e8ab4d
    • Tom Lane's avatar
      Fix thinko in previous patch for optimizing EXISTS-within-EXISTS. · cd1f0d04
      Tom Lane authored
      When recursing after an optimization in pull_up_sublinks_qual_recurse, the
      available_rels value passed down must include only the relations that are
      in the righthand side of the new SEMI or ANTI join; it's incorrect to pull
      up a sub-select that refers to other relations, as seen in the added test
      case.  Per report from BangarRaju Vadapalli.
      
      While at it, rethink the idea of recursing below a NOT EXISTS.  That is
      essentially the same situation as pulling up ANY/EXISTS sub-selects that
      are in the ON clause of an outer join, and it has the same disadvantage:
      we'd force the two joins to be evaluated according to the syntactic nesting
      order, because the lower join will most likely not be able to commute with
      the ANTI join.  That could result in having to form a rather large join
      product, whereas the handling of a correlated subselect is not quite that
      dumb.  So until we can handle those cases better, #ifdef NOT_USED that
      case.  (I think it's okay to pull up in the EXISTS/ANY cases, because SEMI
      joins aren't so inflexible about ordering.)
      
      Back-patch to 8.4, same as for previous patch in this area.  Fortunately
      that patch hadn't made it into any shipped releases yet.
      cd1f0d04
    • Alvaro Herrera's avatar
      Remove extra copying of TupleDescs for heap_create_with_catalog · a40a5d94
      Alvaro Herrera authored
      Some callers were creating copies of tuple descriptors to pass to that
      function, stating in code comments that it was necessary because it
      modified the passed descriptor.  Code inspection reveals this not to be
      true, and indeed not all callers are passing copies in the first place.
      So remove the extra ones and the misleading comments about this behavior
      as well.
      a40a5d94