1. 09 Jan, 2011 3 commits
    • Tom Lane's avatar
      Fix assorted corner-case bugs in contrib/intarray. · fdf2dbda
      Tom Lane authored
      The array containment operators now behave per mathematical expectation
      for empty arrays (ie, an empty array is contained in anything).
      Both these operators and the query_int operators now work as expected in
      GiST and GIN index searches, rather than having corner cases where the
      index searches gave different answers.
      
      Also, fix unexpected failures where the operators would claim that an array
      contained nulls, when in fact there was no longer any null present (similar
      to bug #5784).  The restriction to not have nulls is still there, as
      removing it would take a lot of added code complexity and probably slow
      things down significantly.
      
      Also, remove the arbitrary restriction to 1-D arrays; unlike the other
      restriction, this was buying us nothing performance-wise.
      
      Assorted cosmetic improvements and marginal performance improvements, too.
      fdf2dbda
    • Tom Lane's avatar
      Add array_contains_nulls() function in arrayfuncs.c. · adf328c0
      Tom Lane authored
      This will support fixing contrib/intarray (and probably other places)
      so that they don't have to fail on arrays that contain a null bitmap
      but no live null entries.
      adf328c0
    • Tom Lane's avatar
      Fix up gincostestimate for new extractQuery API. · 4d1b76e4
      Tom Lane authored
      The only reason this wasn't crashing while testing the core anyarray
      operators was that it was disabled for those cases because of passing the
      wrong type information to get_opfamily_proc :-(.  So fix that too, and make
      it insist on finding the support proc --- in hindsight, silently doing
      nothing is not as sane a coping mechanism as all that.
      4d1b76e4
  2. 08 Jan, 2011 18 commits
  3. 07 Jan, 2011 4 commits
  4. 06 Jan, 2011 5 commits
  5. 05 Jan, 2011 8 commits
  6. 04 Jan, 2011 2 commits