1. 21 8月, 1999 1 次提交
    • T
      Major revision of sort-node handling: push knowledge of query · db436adf
      Tom Lane 提交于
      sort order down into planner, instead of handling it only at the very top
      level of the planner.  This fixes many things.  An explicit sort is now
      avoided if there is a cheaper alternative (typically an indexscan) not
      only for ORDER BY, but also for the internal sort of GROUP BY.  It works
      even when there is no other reason (such as a WHERE condition) to consider
      the indexscan.  It works for indexes on functions.  It works for indexes
      on functions, backwards.  It's just so cool...
      
      CAUTION: I have changed the representation of SortClause nodes, therefore
      THIS UPDATE BREAKS STORED RULES.  You will need to initdb.
      db436adf
  2. 16 8月, 1999 1 次提交
    • T
      Major planner/optimizer revision: get rid of PathOrder node type, · e6381966
      Tom Lane 提交于
      store all ordering information in pathkeys lists (which are now lists of
      lists of PathKeyItem nodes, not just lists of lists of vars).  This was
      a big win --- the code is smaller and IMHO more understandable than it
      was, even though it handles more cases.  I believe the node changes will
      not force an initdb for anyone; planner nodes don't show up in stored
      rules.
      e6381966
  3. 09 8月, 1999 1 次提交
    • B
      > > Prevent sorting if result is already sorted · 158fd5f1
      Bruce Momjian 提交于
      > >
      > > was implemented by Jan Wieck.
      > > His work is for ascending order cases.
      > >
      > > Here is a patch to prevent sorting also in descending
      > > order cases.
      > > Because I had already changed _bt_first() to position
      > > backward correctly before v6.5,this patch would work.
      > >
      Hiroshi Inoue
      Inoue@tpf.co.jp
      158fd5f1
  4. 29 7月, 1999 1 次提交
  5. 25 7月, 1999 1 次提交
    • T
      Clean up messy clause-selectivity code in clausesel.c; repair bug · ac4913a0
      Tom Lane 提交于
      identified by Hiroshi (incorrect cost attributed to OR clauses
      after multiple passes through set_rest_selec()).  I think the code
      was trying to allow selectivities of OR subclauses to be passed in
      from outside, but noplace was actually passing any useful data, and
      set_rest_selec() was passing wrong data.
      
      Restructure representation of "indexqual" in IndexPath nodes so that
      it is the same as for indxqual in completed IndexScan nodes: namely,
      a toplevel list with an entry for each pass of the index scan, having
      sublists that are implicitly-ANDed index qual conditions for that pass.
      You don't want to know what the old representation was :-(
      
      Improve documentation of OR-clause indexscan functions.
      
      Remove useless 'notclause' field from RestrictInfo nodes.  (This might
      force an initdb for anyone who has stored rules containing RestrictInfos,
      but I do not think that RestrictInfo ever appears in completed plans.)
      ac4913a0
  6. 18 7月, 1999 1 次提交
  7. 16 7月, 1999 2 次提交
  8. 15 7月, 1999 1 次提交
  9. 07 6月, 1999 1 次提交
  10. 26 5月, 1999 2 次提交
  11. 12 5月, 1999 1 次提交
  12. 18 2月, 1999 1 次提交
  13. 15 2月, 1999 2 次提交
  14. 14 2月, 1999 1 次提交
  15. 12 2月, 1999 1 次提交
  16. 11 2月, 1999 2 次提交
  17. 10 2月, 1999 1 次提交
  18. 09 2月, 1999 1 次提交
  19. 08 2月, 1999 1 次提交
  20. 07 2月, 1999 2 次提交
  21. 04 2月, 1999 2 次提交
  22. 03 2月, 1999 1 次提交
  23. 01 9月, 1998 2 次提交
  24. 05 8月, 1998 1 次提交
  25. 02 8月, 1998 1 次提交
  26. 26 2月, 1998 1 次提交
  27. 13 2月, 1998 1 次提交
  28. 10 2月, 1998 1 次提交
  29. 21 1月, 1998 1 次提交
  30. 08 1月, 1998 1 次提交
  31. 05 1月, 1998 1 次提交
  32. 09 9月, 1997 2 次提交