1. 17 Apr, 2007 5 commits
    • Bruce Momjian's avatar
      Not easy, per Alvaro: · 6c2c6682
      Bruce Momjian authored
      < * %Set proper permissions on non-system schemas during db creation
      > * Set proper permissions on non-system schemas during db creation
      6c2c6682
    • Tom Lane's avatar
      Rewrite choose_bitmap_and() to make it more robust in the presence of · 2e824a8e
      Tom Lane authored
      competing alternatives for indexes to use in a bitmap scan.  The former
      coding took estimated selectivity as an overriding factor, causing it to
      sometimes choose indexes that were much slower to scan than ones with a
      slightly worse selectivity.  It was also too narrow-minded about which
      combinations of indexes to consider ANDing.  The rewrite makes it pay more
      attention to index scan cost than selectivity; this seems sane since it's
      impossible to have very bad selectivity with low cost, whereas the reverse
      isn't true.  Also, we now consider each index alone, as well as adding
      each index to an AND-group led by each prior index, for a total of about
      O(N^2) rather than O(N) combinations considered.  This makes the results
      much less dependent on the exact order in which the indexes are
      considered.  It's still a lot cheaper than an O(2^N) exhaustive search.
      A prefilter step eliminates all but the cheapest of those indexes using
      the same set of WHERE conditions, to keep the effective value of N down in
      scenarios where the DBA has created lots of partially-redundant indexes.
      2e824a8e
    • Tom Lane's avatar
    • Tom Lane's avatar
      And remove 'em again ... · a7664ca3
      Tom Lane authored
      a7664ca3
    • Tom Lane's avatar
  2. 16 Apr, 2007 8 commits
  3. 15 Apr, 2007 4 commits
  4. 14 Apr, 2007 1 commit
  5. 13 Apr, 2007 5 commits
  6. 12 Apr, 2007 8 commits
  7. 11 Apr, 2007 2 commits
  8. 10 Apr, 2007 2 commits
  9. 09 Apr, 2007 3 commits
  10. 08 Apr, 2007 2 commits