1. 02 5月, 2006 3 次提交
    • T
      GIN: Generalized Inverted iNdex. · 8a3631f8
      Teodor Sigaev 提交于
      text[], int4[], Tsearch2 support for GIN.
      8a3631f8
    • T
      Avoid assuming that statistics for a parent relation reflect the properties of · 427c6b5b
      Tom Lane 提交于
      the union of its child relations as well.  This might have been a good idea
      when it was originally coded, but it's a fatally bad idea when inheritance is
      being used for partitioning.  It's better to have no stats at all than
      completely misleading stats.  Per report from Mark Liberman.
      
      The bug arguably exists all the way back, but I've only patched HEAD and 8.1
      because we weren't particularly trying to support partitioning before 8.1.
      
      Eventually we ought to look at deriving union statistics instead of just
      punting, but for now the drop kick looks good.
      427c6b5b
    • T
      Provide a namespace.c function for lookup of an operator with exact · a65a4942
      Tom Lane 提交于
      input datatypes given, and use this before trying OpernameGetCandidates.
      This is faster than the old method when there's an exact match, and it
      does not seem materially slower when there's not.  And it definitely
      makes some of the callers cleaner, because they didn't really want to
      know about a list of candidates anyway.  Per discussion with Atsushi Ogawa.
      a65a4942
  2. 01 5月, 2006 2 次提交
  3. 30 4月, 2006 10 次提交
  4. 29 4月, 2006 5 次提交
    • B
      Solaris tas() uses 'int' now. · 291724df
      Bruce Momjian 提交于
      Theo Schlossnagle
      291724df
    • B
      Intel compiler has a bug/misoptimization in checking for division by NAN · 61091ec2
      Bruce Momjian 提交于
      (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.  Autoconf run.
      
      Jeremy Drake
      61091ec2
    • B
      Fix s_lock_test to use tas.o file, if needed. · a1ee6215
      Bruce Momjian 提交于
      a1ee6215
    • T
      Remove the restriction originally coded into optimize_minmax_aggregates() that · 53ee9f52
      Tom Lane 提交于
      MIN/MAX not be converted to use an index if the query WHERE clause contains
      any volatile functions or subplans.
      
      I had originally feared that the conversion might alter the behavior of such a
      query with respect to a volatile function.  Well, so it might, but only in the
      sense that the function would get evaluated at a subset of the table rows
      rather than all of them --- and we have never made any such guarantee anyway.
      (For instance, we don't refuse to use an index for an ordinary non-aggregate
      query when one of the non-indexable filter conditions contains a volatile
      function.)
      
      The prohibition against subplans was because of worry that that case wasn't
      adequately tested, which it wasn't, but it turns out to be possible to make
      8.1 fail anyway:
      
      regression=# select o.ten, (select max(unique2) from tenk1 i where ten = o.ten
      or ten = (select f1 from int4_tbl limit 1)) from tenk1 o;
      ERROR:  direct correlated subquery unsupported as initplan
      
      This is due to bogus code in SS_make_initplan_from_plan (it's an initplan,
      ergo it can't have any parParams).  Having fixed that, we might as well allow
      subplans as well as initplans.
      53ee9f52
    • B
      4c5eb2c2
  5. 28 4月, 2006 9 次提交
  6. 27 4月, 2006 11 次提交