Skip to content
Snippets Groups Projects
  1. Apr 27, 2008
  2. Mar 26, 2008
  3. Jun 07, 2007
  4. May 11, 2007
    • Tom Lane's avatar
      Support arrays of composite types, including the rowtypes of regular tables · bc8036fc
      Tom Lane authored
      and views (but not system catalogs, nor sequences or toast tables).  Get rid
      of the hardwired convention that a type's array type is named exactly "_type",
      instead using a new column pg_type.typarray to provide the linkage.  (It still
      will be named "_type", though, except in odd corner cases such as
      maximum-length type names.)
      
      Along the way, make tracking of owner and schema dependencies for types more
      uniform: a type directly created by the user has these dependencies, while a
      table rowtype or auto-generated array type does not have them, but depends on
      its parent object instead.
      
      David Fetter, Andrew Dunstan, Tom Lane
      bc8036fc
  5. Apr 06, 2007
  6. Mar 02, 2007
  7. Feb 20, 2007
  8. Feb 01, 2007
  9. Jan 31, 2007
    • Bruce Momjian's avatar
      Update documentation on may/can/might: · a134ee33
      Bruce Momjian authored
      Standard English uses "may", "can", and "might" in different ways:
      
              may - permission, "You may borrow my rake."
      
              can - ability, "I can lift that log."
      
              might - possibility, "It might rain today."
      
      Unfortunately, in conversational English, their use is often mixed, as
      in, "You may use this variable to do X", when in fact, "can" is a better
      choice.  Similarly, "It may crash" is better stated, "It might crash".
      
      Also update two error messages mentioned in the documenation to match.
      a134ee33
    • Bruce Momjian's avatar
      Add missing colon. · 1a628134
      Bruce Momjian authored
      1a628134
  10. Jan 30, 2007
  11. Sep 29, 2006
    • Tom Lane's avatar
      Allow assignment to array elements not contiguous with those already · 352a56ba
      Tom Lane authored
      present; intervening positions are filled with nulls.  This behavior
      is required by SQL99 but was not implementable before 8.2 due to lack
      of support for nulls in arrays.  I have only made it work for the
      one-dimensional case, which is all that SQL99 requires.  It seems quite
      complex to get it right in higher dimensions, and since we never allowed
      extension at all in higher dimensions, I think that must count as a
      future feature addition not a bug fix.
      352a56ba
  12. May 10, 2006
  13. May 09, 2006
  14. Apr 23, 2006
  15. 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
  16. 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
  17. Nov 05, 2005
  18. Nov 04, 2005
  19. Jul 14, 2005
  20. Feb 06, 2005
  21. Dec 23, 2004
  22. Dec 13, 2004
  23. Nov 27, 2004
  24. Nov 15, 2004
  25. Aug 08, 2004
  26. Aug 05, 2004
    • Joe Conway's avatar
      Require that array literals produce "rectangular" arrays, i.e. all the · 0e13d627
      Joe Conway authored
      subarrays of a given dimension have the same number of elements/subarrays.
      
      Also repair a longstanding undocumented (as far as I can see) ability to
      explicitly set array bounds in the array literal syntax. It now can
      deal properly with negative array indicies. Modify array_out so that
      arrays with non-standard lower bounds (i.e. not 1) are output with
      the expicit dimension syntax. This fixes a longstanding issue whereby
      arrays with non-default lower bounds had them changed to default
      after a dump/reload cycle.
      
      Modify regression tests and docs to suit, and add some minimal
      documentation regarding the explicit dimension syntax.
      0e13d627
  27. Jun 07, 2004
  28. Nov 29, 2003
    • PostgreSQL Daemon's avatar
      · 969685ad
      PostgreSQL Daemon authored
      $Header: -> $PostgreSQL Changes ...
      969685ad
  29. Nov 04, 2003
  30. Nov 01, 2003
  31. Aug 31, 2003
  32. Aug 19, 2003
  33. Aug 10, 2003
  34. 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
  35. Jun 25, 2003
Loading