1. 19 6月, 1999 1 次提交
    • T
      My first chosen victim for expression_tree_walker conversion · e7865086
      Tom Lane 提交于
      is parse_aggs.c.  This fixes its failure to cope with (at least) CaseExpr
      and ArrayRef nodes, which is the reason why both of these fail in 6.5:
      select coalesce(f1,0) from int4_tbl group by f1;
      ERROR:  Illegal use of aggregates or non-group column in target list
      select sentence.words[0] from sentence group by sentence.words[0];
      ERROR:  Illegal use of aggregates or non-group column in target list
      The array case still fails, but at least it's not parse_agg's fault
      anymore ... considering that we now support CASE officially, I think
      it's important to fix the first example ...
      e7865086
  2. 26 5月, 1999 1 次提交
  3. 24 5月, 1999 1 次提交
    • T
      Detect case of invalid use of GROUP BY when there are no · 505b5185
      Tom Lane 提交于
      aggregate functions, as in
      	select a, b from foo group by a;
      The ungrouped reference to b is not kosher, but formerly we neglected to
      check this unless there was an aggregate function somewhere in the query.
      505b5185
  4. 12 5月, 1999 1 次提交
  5. 29 4月, 1999 1 次提交
  6. 14 2月, 1999 1 次提交
  7. 24 1月, 1999 1 次提交
  8. 08 12月, 1998 1 次提交
  9. 09 9月, 1998 1 次提交
  10. 01 9月, 1998 1 次提交
  11. 19 8月, 1998 1 次提交
    • B
      heap_fetch requires buffer pointer, must be released; heap_getnext · 79715390
      Bruce Momjian 提交于
      no longer returns buffer pointer, can be gotten from scan;
      	descriptor; bootstrap can create multi-key indexes;
      pg_procname index now is multi-key index; oidint2, oidint4, oidname
      are gone (must be removed from regression tests); use System Cache
      rather than sequential scan in many places; heap_modifytuple no
      longer takes buffer parameter; remove unused buffer parameter in
      a few other functions; oid8 is not index-able; remove some use of
      single-character variable names; cleanup Buffer variables usage
      and scan descriptor looping; cleaned up allocation and freeing of
      tuples; 18k lines of diff;
      79715390
  12. 16 6月, 1998 1 次提交
  13. 31 3月, 1998 1 次提交
    • B
      I started adding the Having Clause and it works quite fine for · c579ce0f
      Bruce Momjian 提交于
      sequential scans! (I think it will also work with hash, index, etc
      but I did not check it out! I made some High level changes which
      should work for all access methods, but maybe I'm wrong. Please
      let me know.)
      
      Now it is possible to make queries like:
      
      select s.sname, max(p.pid), min(p.pid) from part p, supplier s
      where s.sid=p.sid group by s.sname having max(pid)=6 and min(pid)=1
      or avg(pid)=4;
      
      Having does not work yet for queries that contain a subselect
      statement in the Having clause, I'll try to fix this in the next
      days.
      
      If there are some bugs, please let me know, I'll start to read the
      mailinglists now!
      
      Now here is the patch against the original 6.3 version (no snapshot!!):
      
      Stefan
      c579ce0f
  14. 26 2月, 1998 1 次提交
  15. 20 1月, 1998 1 次提交
  16. 16 1月, 1998 1 次提交
  17. 05 1月, 1998 1 次提交
  18. 04 1月, 1998 1 次提交
  19. 22 12月, 1997 1 次提交
  20. 26 11月, 1997 3 次提交