1. 15 11月, 1999 1 次提交
    • T
      Implement subselects in target lists. Also, relax requirement that · f68e11f3
      Tom Lane 提交于
      subselects can only appear on the righthand side of a binary operator.
      That's still true for quantified predicates like x = ANY (SELECT ...),
      but a subselect that delivers a single result can now appear anywhere
      in an expression.  This is implemented by changing EXPR_SUBLINK sublinks
      to represent just the (SELECT ...) expression, without any 'left hand
      side' or combining operator --- so they're now more like EXISTS_SUBLINK.
      To handle the case of '(x, y, z) = (SELECT ...)', I added a new sublink
      type MULTIEXPR_SUBLINK, which acts just like EXPR_SUBLINK used to.
      But the grammar will only generate one for a multiple-left-hand-side
      row expression.
      f68e11f3
  2. 26 8月, 1999 1 次提交
    • T
      Revise implementation of SubLinks so that there is a consistent, · 42af56e1
      Tom Lane 提交于
      documented intepretation of the lefthand and oper fields.  Fix a number of
      obscure problems while at it --- for example, the old code failed if the parser
      decided to insert a type-coercion function just below the operator of a
      SubLink.
      CAUTION: this will break stored rules that contain subplans.  You may
      need to initdb.
      42af56e1
  3. 23 8月, 1999 1 次提交
    • T
      Further planner/optimizer cleanups. Move all set_tlist_references · 78114cd4
      Tom Lane 提交于
      and fix_opids processing to a single recursive pass over the plan tree
      executed at the very tail end of planning, rather than haphazardly here
      and there at different places.  Now that tlist Vars do not get modified
      until the very end, it's possible to get rid of the klugy var_equal and
      match_varid partial-matching routines, and just use plain equal()
      throughout the optimizer.  This is a step towards allowing merge and
      hash joins to be done on expressions instead of only Vars ...
      78114cd4
  4. 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
  5. 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
  6. 18 7月, 1999 1 次提交
  7. 17 7月, 1999 1 次提交
  8. 16 7月, 1999 1 次提交
  9. 26 5月, 1999 2 次提交
  10. 18 5月, 1999 1 次提交
  11. 12 5月, 1999 1 次提交
  12. 14 2月, 1999 1 次提交
  13. 24 1月, 1999 1 次提交
  14. 01 9月, 1998 1 次提交
  15. 13 7月, 1998 1 次提交
  16. 26 2月, 1998 1 次提交
  17. 22 2月, 1998 1 次提交
  18. 13 2月, 1998 1 次提交
  19. 11 2月, 1998 1 次提交
  20. 10 2月, 1998 1 次提交
  21. 21 1月, 1998 1 次提交
  22. 20 1月, 1998 1 次提交
  23. 19 1月, 1998 1 次提交
  24. 17 1月, 1998 1 次提交
  25. 04 1月, 1998 1 次提交
  26. 09 9月, 1997 2 次提交
  27. 08 9月, 1997 1 次提交
  28. 07 9月, 1997 1 次提交
  29. 22 1月, 1997 1 次提交
  30. 04 11月, 1996 1 次提交
  31. 03 11月, 1996 1 次提交
  32. 23 10月, 1996 1 次提交
  33. 19 10月, 1996 1 次提交
  34. 06 10月, 1996 1 次提交
  35. 28 8月, 1996 1 次提交
  36. 09 7月, 1996 1 次提交