1. 18 9月, 2009 1 次提交
    • P
      Easier to translate psql help · 20f7f019
      Peter Eisentraut 提交于
      Instead of requiring translators to translate the entire SQL command
      synopses, change create_help.pl to only require them to translate the
      placeholders, and paste those into the synopsis using a printf mechanism.
      Make some small updates to the markup to make it easier to parse.
      
      Note: This causes msgmerge of gettext 0.17 to segfault.  You will need
      the patch from https://savannah.gnu.org/bugs/?27474 to make it work.
      msgmerge usually only runs on babel.postgresql.org, however.
      20f7f019
  2. 28 8月, 2009 1 次提交
    • T
      Modify the definition of window-function PARTITION BY and ORDER BY clauses · bb16dc49
      Tom Lane 提交于
      so that their elements are always taken as simple expressions over the
      query's input columns.  It originally seemed like a good idea to make them
      act exactly like GROUP BY and ORDER BY, right down to the SQL92-era behavior
      of accepting output column names or numbers.  However, that was not such a
      great idea, for two reasons:
      
      1. It permits circular references, as exhibited in bug #5018: the output
      column could be the one containing the window function itself.  (We actually
      had a regression test case illustrating this, but nobody thought twice about
      how confusing that would be.)
      
      2. It doesn't seem like a good idea for, eg, "lead(foo) OVER (ORDER BY foo)"
      to potentially use two completely different meanings for "foo".
      
      Accordingly, narrow down the behavior of window clauses to use only the
      SQL99-compliant interpretation that the expressions are simple expressions.
      bb16dc49
  3. 19 8月, 2009 1 次提交
  4. 04 5月, 2009 1 次提交
  5. 16 4月, 2009 1 次提交
  6. 03 2月, 2009 1 次提交
  7. 23 1月, 2009 2 次提交
  8. 12 1月, 2009 1 次提交
  9. 01 1月, 2009 1 次提交
  10. 31 12月, 2008 1 次提交
    • T
      Add some basic support for window frame clauses to the window-functions · 8e8854da
      Tom Lane 提交于
      patch.  This includes the ability to force the frame to cover the whole
      partition, and the ability to make the frame end exactly on the current row
      rather than its last ORDER BY peer.  Supporting any more of the full SQL
      frame-clause syntax will require nontrivial hacking on the window aggregate
      code, so it'll have to wait for 8.5 or beyond.
      8e8854da
  11. 30 12月, 2008 1 次提交
  12. 29 12月, 2008 1 次提交
  13. 01 12月, 2008 1 次提交
  14. 21 11月, 2008 1 次提交
  15. 20 11月, 2008 1 次提交
  16. 19 11月, 2008 1 次提交
  17. 14 11月, 2008 1 次提交
  18. 22 10月, 2008 1 次提交
  19. 08 10月, 2008 1 次提交
  20. 05 10月, 2008 1 次提交
    • T
      Implement SQL-standard WITH clauses, including WITH RECURSIVE. · 44d5be0e
      Tom Lane 提交于
      There are some unimplemented aspects: recursive queries must use UNION ALL
      (should allow UNION too), and we don't have SEARCH or CYCLE clauses.
      These might or might not get done for 8.4, but even without them it's a
      pretty useful feature.
      
      There are also a couple of small loose ends and definitional quibbles,
      which I'll send a memo about to pgsql-hackers shortly.  But let's land
      the patch now so we can get on with other development.
      
      Yoshiyuki Asaba, with lots of help from Tatsuo Ishii and Tom Lane
      44d5be0e
  21. 23 9月, 2008 1 次提交
  22. 16 2月, 2008 1 次提交
  23. 28 11月, 2007 1 次提交
  24. 09 6月, 2007 1 次提交
  25. 16 5月, 2007 1 次提交
  26. 02 2月, 2007 1 次提交
    • B
      Wording cleanup for error messages. Also change can't -> cannot. · 8b4ff8b6
      Bruce Momjian 提交于
      Standard English uses "may", "can", and "might" in different ways:
      
              may - permission, "You may borrow my rake."
      
              can - ability, "I can lift that log."
      
              might - possibility, "It might rain today."
      
      Unfortunately, in conversational English, their use is often mixed, as
      in, "You may use this variable to do X", when in fact, "can" is a better
      choice.  Similarly, "It may crash" is better stated, "It might crash".
      8b4ff8b6
  27. 01 2月, 2007 2 次提交
  28. 10 1月, 2007 1 次提交
  29. 09 1月, 2007 1 次提交
    • T
      Support ORDER BY ... NULLS FIRST/LAST, and add ASC/DESC/NULLS FIRST/NULLS LAST · 44317582
      Tom Lane 提交于
      per-column options for btree indexes.  The planner's support for this is still
      pretty rudimentary; it does not yet know how to plan mergejoins with
      nondefault ordering options.  The documentation is pretty rudimentary, too.
      I'll work on improving that stuff later.
      
      Note incompatible change from prior behavior: ORDER BY ... USING will now be
      rejected if the operator is not a less-than or greater-than member of some
      btree opclass.  This prevents less-than-sane behavior if an operator that
      doesn't actually define a proper sort ordering is selected.
      44317582
  30. 02 12月, 2006 1 次提交
  31. 19 9月, 2006 1 次提交
  32. 16 9月, 2006 1 次提交
  33. 01 5月, 2006 1 次提交
  34. 02 11月, 2005 1 次提交
  35. 02 8月, 2005 1 次提交
  36. 14 7月, 2005 1 次提交
  37. 08 5月, 2005 1 次提交
  38. 29 4月, 2005 1 次提交
    • T
      Implement sharable row-level locks, and use them for foreign key references · bedb78d3
      Tom Lane 提交于
      to eliminate unnecessary deadlocks.  This commit adds SELECT ... FOR SHARE
      paralleling SELECT ... FOR UPDATE.  The implementation uses a new SLRU
      data structure (managed much like pg_subtrans) to represent multiple-
      transaction-ID sets.  When more than one transaction is holding a shared
      lock on a particular row, we create a MultiXactId representing that set
      of transactions and store its ID in the row's XMAX.  This scheme allows
      an effectively unlimited number of row locks, just as we did before,
      while not costing any extra overhead except when a shared lock actually
      has to be shared.   Still TODO: use the regular lock manager to control
      the grant order when multiple backends are waiting for a row lock.
      
      Alvaro Herrera and Tom Lane.
      bedb78d3