Skip to content
Snippets Groups Projects
  1. Jul 23, 2009
    • Tom Lane's avatar
      In a non-hashed Agg node, reset the "aggcontext" at group boundaries, instead · 6a0865e4
      Tom Lane authored
      of individually pfree'ing pass-by-reference transition values.  This should
      be at least as fast as the prior coding, and it has the major advantage of
      clearing out any working data an aggregate function may have stored in or
      underneath the aggcontext.  This avoids memory leakage when an aggregate
      such as array_agg() is used in GROUP BY mode.  Per report from Chris Spotts.
      
      Back-patch to 8.4.  In principle the problem could arise in prior versions,
      but since they didn't have array_agg the issue seems not critical.
      6a0865e4
  2. Jun 20, 2009
  3. Jun 11, 2009
  4. Jun 09, 2009
  5. Jan 01, 2009
  6. Dec 28, 2008
  7. Nov 14, 2008
  8. Nov 13, 2008
  9. Jan 01, 2008
  10. Feb 28, 2007
    • Tom Lane's avatar
      Replace direct assignments to VARATT_SIZEP(x) with SET_VARSIZE(x, len). · 234a02b2
      Tom Lane authored
      Get rid of VARATT_SIZE and VARATT_DATA, which were simply redundant with
      VARSIZE and VARDATA, and as a consequence almost no code was using the
      longer names.  Rename the length fields of struct varlena and various
      derived structures to catch anyplace that was accessing them directly;
      and clean up various places so caught.  In itself this patch doesn't
      change any behavior at all, but it is necessary infrastructure if we hope
      to play any games with the representation of varlena headers.
      Greg Stark and Tom Lane
      234a02b2
  11. Jan 05, 2007
  12. Jul 14, 2006
  13. Mar 05, 2006
  14. Nov 19, 2005
    • Tom Lane's avatar
      Change array_push and array_cat so that they retain the lower bound of · 1e9a1a70
      Tom Lane authored
      the array (for array_push) or higher-dimensional array (for array_cat)
      rather than decrementing it as before.  This avoids generating lower
      bounds other than one for any array operation within the SQL spec.  Per
      recent discussion.
      Interestingly, this seems to have been the original behavior, because
      while updating the docs I noticed that a large fraction of relevant
      examples were *wrong* for the old behavior and are now right.  Is it
      worth correcting this in the back-branch docs?
      1e9a1a70
  15. Nov 17, 2005
    • Tom Lane's avatar
      Make SQL arrays support null elements. This commit fixes the core array · cecb6075
      Tom Lane authored
      functionality, but I still need to make another pass looking at places
      that incidentally use arrays (such as ACL manipulation) to make sure they
      are null-safe.  Contrib needs work too.
      I have not changed the behaviors that are still under discussion about
      array comparison and what to do with lower bounds.
      cecb6075
  16. Oct 15, 2005
  17. Jan 01, 2005
  18. Dec 17, 2004
  19. Aug 29, 2004
  20. Nov 29, 2003
    • PostgreSQL Daemon's avatar
      · 969685ad
      PostgreSQL Daemon authored
      $Header: -> $PostgreSQL Changes ...
      969685ad
  21. Sep 25, 2003
  22. Sep 15, 2003
  23. Sep 10, 2003
  24. Aug 18, 2003
  25. Aug 04, 2003
  26. Jul 27, 2003
  27. Jul 01, 2003
  28. Jun 27, 2003
    • Tom Lane's avatar
      Create real array comparison functions (that use the element datatype's · b3c0551e
      Tom Lane authored
      comparison functions), replacing the highly bogus bitwise array_eq.  Create
      a btree index opclass for ANYARRAY --- it is now possible to create indexes
      on array columns.
      Arrange to cache the results of catalog lookups across multiple array
      operations, instead of repeating the lookups on every call.
      Add string_to_array and array_to_string functions.
      Remove singleton_array, array_accum, array_assign, and array_subscript
      functions, since these were for proof-of-concept and not intended to become
      supported functions.
      Minor adjustments to behavior in some corner cases with empty or
      zero-dimensional arrays.
      
      Joe Conway (with some editorializing by Tom Lane).
      b3c0551e
  29. Jun 25, 2003
  30. Apr 09, 2003
Loading