1. 03 Jun, 2010 12 commits
  2. 02 Jun, 2010 1 commit
  3. 01 Jun, 2010 6 commits
  4. 31 May, 2010 7 commits
  5. 30 May, 2010 3 commits
    • Tom Lane's avatar
      Fix misuse of Lossy Counting (LC) algorithm in compute_tsvector_stats(). · bc0f0809
      Tom Lane authored
      We must filter out hashtable entries with frequencies less than those
      specified by the algorithm, else we risk emitting junk entries whose
      actual frequency is much less than other lexemes that did not get
      tabulated.  This is bad enough by itself, but even worse is that
      tsquerysel() believes that the minimum frequency seen in pg_statistic is a
      hard upper bound for lexemes not included, and was thus underestimating
      the frequency of non-MCEs.
      
      Also, set the threshold frequency to something with a little bit of theory
      behind it, to wit assume that the input distribution is approximately
      Zipfian.  This might need adjustment in future, but some preliminary
      experiments suggest that it's not too unreasonable.
      
      Back-patch to 8.4, where this code was introduced.
      
      Jan Urbanski, with some editorialization by Tom
      bc0f0809
    • Tom Lane's avatar
      Change the notation for calling functions with named parameters from · b12b7a90
      Tom Lane authored
      "val AS name" to "name := val", as per recent discussion.
      
      This patch catches everything in the original named-parameters patch,
      but I'm not certain that no other dependencies snuck in later (grepping
      the source tree for all uses of AS soon proved unworkable).
      
      In passing I note that we've dropped the ball at least once on keeping
      ecpg's lexer (as opposed to parser) in sync with the backend.  It would
      be a good idea to go through all of pgc.l and see if it's in sync now.
      I didn't attempt that at the moment.
      b12b7a90
    • Bruce Momjian's avatar
  6. 29 May, 2010 4 commits
  7. 28 May, 2010 7 commits
    • Tom Lane's avatar
      Abort a FETCH_COUNT-controlled query if we observe any I/O error on the · 47d6d448
      Tom Lane authored
      output stream.  This typically indicates that the user quit out of $PAGER,
      or that we are writing to a file and ran out of disk space.  In either case
      we shouldn't bother to continue fetching data.
      
      Stephen Frost
      47d6d448
    • Tom Lane's avatar
      Fix oversight in the previous patch that made LIKE throw error for \ at the · ece869b1
      Tom Lane authored
      end of the pattern: the code path that handles \ just after % should throw
      error too.  As in the previous patch, not back-patching for fear of breaking
      apps that worked before.
      ece869b1
    • Bruce Momjian's avatar
      Document use of VPATH builds. · 9b94e369
      Bruce Momjian authored
      David Fetter
      9b94e369
    • Tom Lane's avatar
      Rewrite LIKE's %-followed-by-_ optimization so it really works (this time · dbde97cd
      Tom Lane authored
      for sure ;-)).  It now also optimizes more cases, such as %_%_.  Improve
      comments too.  Per bug #5478.
      
      In passing, also rename the TCHAR macro to GETCHAR, because pgindent is
      messing with the formatting of the former (apparently it now thinks TCHAR
      is a typedef name).
      
      Back-patch to 8.3, where the bug was introduced.
      dbde97cd
    • Itagaki Takahiro's avatar
      PGDLLEXPORT is __declspec (dllexport) only on MSVC, · e54b0cba
      Itagaki Takahiro authored
      but is __declspec (dllimport) on other compilers
      because cygwin and mingw don't like dllexport.
      e54b0cba
    • Heikki Linnakangas's avatar
      Update High Availability docs. Clarify terms master/primary standby/slave, · fe76f93d
      Heikki Linnakangas authored
      move two paragraphs that apply to log shipping in general from the
      "Alternative method for log shipping" section to the earlier sections.
      Add varname tags where missing. Some small wording changes.
      fe76f93d
    • Tom Lane's avatar
      Rejigger mergejoin logic so that a tuple with a null in the first merge column · f39d57b8
      Tom Lane authored
      is treated like end-of-input, if nulls sort last in that column and we are not
      doing outer-join filling for that input.  In such a case, the tuple cannot
      join to anything from the other input (because we assume mergejoinable
      operators are strict), and neither can any tuple following it in the sort
      order.  If we're not interested in doing outer-join filling we can just
      pretend the tuple and its successors aren't there at all.  This can save a
      great deal of time in situations where there are many nulls in the join
      column, as in a recent example from Scott Marlowe.  Also, since the planner
      tends to not count nulls in its mergejoin scan selectivity estimates, this
      is an important fix to make the runtime behavior more like the estimate.
      
      I regard this as an omission in the patch I wrote years ago to teach mergejoin
      that tuples containing nulls aren't joinable, so I'm back-patching it.  But
      only to 8.3 --- in older versions, we didn't have a solid notion of whether
      nulls sort high or low, so attempting to apply this optimization could break
      things.
      f39d57b8