1. 29 Nov, 2009 2 commits
  2. 28 Nov, 2009 4 commits
    • Tom Lane's avatar
      Add support for an application_name parameter, which is displayed in · 8217cfbd
      Tom Lane authored
      pg_stat_activity and recorded in log entries.
      
      Dave Page, reviewed by Andres Freund
      8217cfbd
    • Bruce Momjian's avatar
      fsync test tools · cb98f615
      Bruce Momjian authored
      Add link to exteran fsync testing script and our fsync test tool.
      cb98f615
    • Bruce Momjian's avatar
      test_fsync: · 017c47bf
      Bruce Momjian authored
      Improve test descriptions displayed during test_fsync;  increase default
      loops to 5k.
      017c47bf
    • Tom Lane's avatar
      Eliminate a lot of list-management overhead within join_search_one_level · 1a95f127
      Tom Lane authored
      by adding a requirement that build_join_rel add new join RelOptInfos to the
      appropriate list immediately at creation.  Per report from Robert Haas,
      the list_concat_unique_ptr() calls that this change eliminates were taking
      the lion's share of the runtime in larger join problems.  This doesn't do
      anything to fix the fundamental combinatorial explosion in large join
      problems, but it should push out the threshold of pain a bit further.
      
      Note: because this changes the order in which joinrel lists are built,
      it might result in changes in selected plans in cases where different
      alternatives have exactly the same costs.  There is one example in the
      regression tests.
      1a95f127
  3. 27 Nov, 2009 4 commits
  4. 26 Nov, 2009 5 commits
  5. 25 Nov, 2009 1 commit
  6. 24 Nov, 2009 2 commits
  7. 23 Nov, 2009 4 commits
  8. 22 Nov, 2009 6 commits
  9. 21 Nov, 2009 2 commits
    • Peter Eisentraut's avatar
      Ignore UTF-8-encoded Unicode byte-order mark at the beginning of a file if · 93d3bac5
      Peter Eisentraut authored
      the client encoding is UTF-8.
      
      a limited version of a patch proposed by Itagaki Takahiro
      93d3bac5
    • Tom Lane's avatar
      Refactor ecpg grammar so that it uses the core grammar's unreserved_keyword · e6c63bf6
      Tom Lane authored
      list, minus a few specific words that have to be treated specially.  This
      replaces a hard-wired list of keywords that would have needed manual
      maintenance, and was not getting it.  The 8.4 coding was already missing
      these words, causing ecpg to incorrectly treat them as reserved words:
      CALLED, CATALOG, DEFINER, ENUM, FOLLOWING, INVOKER, OPTIONS, PARTITION,
      PRECEDING, RANGE, SECURITY, SERVER, UNBOUNDED, WRAPPER.  In HEAD we were
      additionally missing COMMENTS, FUNCTIONS, SEQUENCES, TABLES.
      Per gripe from Bosco Rama.
      e6c63bf6
  10. 20 Nov, 2009 1 commit
    • Tom Lane's avatar
      Add a WHEN clause to CREATE TRIGGER, allowing a boolean expression to be · 7fc0f062
      Tom Lane authored
      checked to determine whether the trigger should be fired.
      
      For BEFORE triggers this is mostly a matter of spec compliance; but for AFTER
      triggers it can provide a noticeable performance improvement, since queuing of
      a deferred trigger event and re-fetching of the row(s) at end of statement can
      be short-circuited if the trigger does not need to be fired.
      
      Takahiro Itagaki, reviewed by KaiGai Kohei.
      7fc0f062
  11. 19 Nov, 2009 2 commits
    • Peter Eisentraut's avatar
      Typo: dump -> restore · 201a45c4
      Peter Eisentraut authored
      fixed in 8.4 and 8.5
      
      Author: Guillaume Lelarge <guillaume@lelarge.info>
      201a45c4
    • Tom Lane's avatar
      Fix memory leak in syslogger: logfile_rotate() would leak a copy of the · b1d55dca
      Tom Lane authored
      output filename if CSV logging was enabled and only one of the two possible
      output files got rotated during a particular call (which would, in fact,
      typically be the case during a size-based rotation).  This would amount to
      about MAXPGPATH (1KB) per rotation, and it's been there since the CSV
      code was put in, so it's surprising that nobody noticed it before.
      Per bug #5196 from Thomas Poindessous.
      b1d55dca
  12. 18 Nov, 2009 1 commit
  13. 16 Nov, 2009 2 commits
    • Tom Lane's avatar
      Provide a parenthesized-options syntax for VACUUM, analogous to that recently · 5e66a51c
      Tom Lane authored
      adopted for EXPLAIN.  This will allow additional options to be implemented
      in future without having to make them fully-reserved keywords.  The old syntax
      remains available for existing options, however.
      
      Itagaki Takahiro
      5e66a51c
    • Tom Lane's avatar
      While doing the final setrefs.c pass over a plan tree, try to match up · 49ed392c
      Tom Lane authored
      non-Var sort/group expressions using ressortgroupref labels instead of
      depending entirely on equal()-ity of the upper node's tlist expressions
      to the lower node's.  This avoids emitting the wrong outputs in cases
      where there are textually identical volatile sort/group expressions,
      as for example
      	select distinct random(),random() from generate_series(1,10);
      Per report from Andrew Gierth.
      
      Backpatch to 8.4.  Arguably this is wrong all the way back, but the only known
      case where there's an observable problem is when using hash aggregation to
      implement DISTINCT, which is new as of 8.4.  So for the moment I'll refrain
      from backpatching further.
      49ed392c
  14. 15 Nov, 2009 2 commits
  15. 14 Nov, 2009 2 commits