1. 22 9月, 2009 1 次提交
  2. 19 1月, 2009 1 次提交
  3. 27 5月, 2007 1 次提交
    • T
      Repair two constraint-exclusion corner cases triggered by proving that an · cadb7833
      Tom Lane 提交于
      inheritance child of an UPDATE/DELETE target relation can be excluded by
      constraints.  I had rearranged some code in set_append_rel_pathlist() to
      avoid "useless" work when a child is excluded, but overdid it and left
      the child with no cheapest_path entry, causing possible failure later
      if the appendrel was involved in a join.  Also, it seems that the dummy
      plan generated by inheritance_planner() when all branches are excluded
      has to be a bit less dummy now than was required in 8.2.
      Per report from Jan Wieck.  Add his test case to the regression tests.
      cadb7833
  4. 28 2月, 2006 1 次提交
  5. 07 4月, 2005 1 次提交
    • N
      Add a "USING" clause to DELETE, which is equivalent to the FROM clause · f5ab0a14
      Neil Conway 提交于
      in UPDATE. We also now issue a NOTICE if a query has _any_ implicit
      range table entries -- in the past, we would only warn about implicit
      RTEs in SELECTs with at least one explicit RTE.
      
      As a result of the warning change, 25 of the regression tests had to
      be updated. I also took the opportunity to remove some bogus whitespace
      differences between some of the float4 and float8 variants. I believe
      I have correctly updated all the platform-specific variants, but let
      me know if that's not the case.
      
      Original patch for DELETE ... USING from Euler Taveira de Oliveira,
      reworked by Neil Conway.
      f5ab0a14
  6. 26 3月, 2005 1 次提交
  7. 03 10月, 2004 1 次提交
  8. 09 3月, 2004 1 次提交
  9. 22 11月, 2003 1 次提交
    • T
      COMMENT ON casts, conversions, languages, operator classes, and · 42ce74bf
      Tom Lane 提交于
      large objects.  Dump all these in pg_dump; also add code to pg_dump
      user-defined conversions.  Make psql's large object code rely on
      the backend for inserting/deleting LOB comments, instead of trying to
      hack pg_description directly.  Documentation and regression tests added.
      
      Christopher Kings-Lynne, code reviewed by Tom
      42ce74bf
  10. 31 10月, 2003 1 次提交
  11. 14 12月, 2002 1 次提交
  12. 22 11月, 2002 1 次提交
  13. 21 11月, 2002 1 次提交
  14. 20 10月, 2002 1 次提交
    • T
      Fix rewrite code so that rules are in fact executed in order by name, · c1f91a38
      Tom Lane 提交于
      rather than being reordered according to INSTEAD attribute for
      implementation convenience.
      Also, increase compiled-in recursion depth limit from 10 to 100 rewrite
      cycles.  10 seems pretty marginal for situations where multiple rules
      exist for the same query.  There was a complaint about this recently,
      so I'm going to bump it up.  (Perhaps we should make the limit a GUC
      parameter, but that's too close to being a new feature to do in beta.)
      c1f91a38
  15. 02 9月, 2002 2 次提交
  16. 03 5月, 2002 1 次提交
    • T
      Retire xlateSqlType/xlateSqlFunc; all type name translations are now · 53cedcac
      Tom Lane 提交于
      handled as special productions.  This is needed to keep us honest about
      user-schema type names that happen to coincide with system type names.
      Per pghackers discussion 24-Apr.  To avoid bloating the keyword list
      too much, I removed the translations for datetime, timespan, and lztext,
      all of which were slated for destruction several versions back anyway.
      53cedcac
  17. 19 4月, 2002 1 次提交
    • T
      Rule names are now unique per-relation, rather than unique globally. · b3120804
      Tom Lane 提交于
      DROP RULE and COMMENT ON RULE syntax adds an 'ON tablename' clause,
      similar to TRIGGER syntaxes.  To allow loading of existing pg_dump
      files containing COMMENT ON RULE, the COMMENT code will still accept
      the old syntax --- but only if the target rulename is unique across
      the whole database.
      b3120804
  18. 12 4月, 2002 1 次提交
    • T
      Restructure representation of aggregate functions so that they have pg_proc · 902a6a0a
      Tom Lane 提交于
      entries, per pghackers discussion.  This fixes aggregates to live in
      namespaces, and also simplifies/speeds up lookup in parse_func.c.
      Also, add a 'proimplicit' flag to pg_proc that controls whether a type
      coercion function may be invoked implicitly, or only explicitly.  The
      current settings of these flags are more permissive than I would like,
      but we will need to debate and refine the behavior; for now, I avoided
      breaking regression tests as much as I could.
      902a6a0a
  19. 15 8月, 2001 1 次提交
    • T
      sum() on int2 and int4 columns now uses an int8, not numeric, accumulator · 5f7c2bdb
      Tom Lane 提交于
      for speed reasons; its result type also changes to int8.  avg() on these
      datatypes now accumulates the running sum in int8 for speed; but we still
      deliver the final result as numeric, so that fractional accuracy is
      preserved.
      
      count() now counts and returns in int8, not int4.  I am a little nervous
      about this possibly breaking users' code, but there didn't seem to be
      a strong sentiment for avoiding the problem.  If we get complaints during
      beta, we can change count back to int4 and add a "count8" aggregate.
      For that matter, users can do it for themselves with a simple CREATE
      AGGREGATE command; the int4inc function is still present, so no C hacking
      is needed.
      
      Also added max() and min() aggregates for OID that do proper unsigned
      comparison, instead of piggybacking on int4 aggregates.
      
      initdb forced.
      5f7c2bdb
  20. 10 7月, 2001 1 次提交
  21. 06 12月, 2000 1 次提交
  22. 13 9月, 2000 1 次提交
  23. 20 4月, 2000 1 次提交
  24. 06 1月, 2000 1 次提交
  25. 01 8月, 1999 1 次提交
  26. 17 5月, 1999 1 次提交
  27. 13 5月, 1999 1 次提交
  28. 15 4月, 1999 1 次提交
    • T
      Add ORDER BY clauses to some select-from-view operations · dbce02f1
      Tom Lane 提交于
      in rules regression test, in order to eliminate bogus test 'failures'
      that occur due to platform-dependent and join-implementation-dependent
      ordering of tuples.  I'm not sure that I got all of the SELECTs that need
      ordering clauses --- we may need some more.  But this takes care of the
      diffs between my platform and Jan's.
      dbce02f1
  29. 23 2月, 1999 1 次提交
  30. 08 2月, 1999 3 次提交
  31. 29 10月, 1998 1 次提交
  32. 03 10月, 1998 1 次提交
    • B
      Here's a combination of all the patches I'm currently waiting · f93b6974
      Bruce Momjian 提交于
          for against a just updated CVS tree. It contains
      
              Partial new rewrite system that handles subselects,  view
              aggregate  columns, insert into select from view, updates
              with set col = view-value and select rules restriction to
              view definition.
      
              Updates  for  rule/view  backparsing utility functions to
              handle subselects correct.
      
      
              New system views pg_tables and pg_indexes (where you  can
              see the complete index definition in the latter one).
      
              Enabling array references on query parameters.
      
              Bugfix for functional index.
      
              Little changes to system views pg_rules and pg_views.
      
      
          The rule system isn't a release-stopper any longer.
      
          But  another  stopper  is  that  I  don't  know if the latest
          changes to PL/pgSQL (not already in CVS) made it  compile  on
          AIX. Still wait for some response from Dave.
      
      Jan
      f93b6974
  33. 16 9月, 1998 1 次提交
  34. 19 8月, 1998 1 次提交
    • M
      · 1a77894d
      Marc G. Fournier 提交于
      Add rule tests to regression tests...
      1a77894d