Skip to content
Snippets Groups Projects
  1. Apr 24, 2010
  2. Aug 28, 2009
  3. Jun 11, 2009
  4. Nov 26, 2008
  5. Sep 02, 2008
  6. Sep 01, 2008
  7. Aug 29, 2008
  8. Aug 26, 2008
  9. May 29, 2008
    • Tom Lane's avatar
      Fix some bugs introduced by the 8.2-era conversion of cube functions to V1 · 5914140a
      Tom Lane authored
      calling convention.  cube_inter and cube_distance could attempt to pfree
      their input arguments, and cube_dim returned a value from a struct it
      might have just pfree'd (which would only really cause a problem in a
      debug build, but it's still wrong).  Per bug #4208 and additional code
      reading.
      
      In HEAD and 8.3, I also made a batch of cosmetic changes to bring these
      functions into line with the preferred coding style for V1 functions,
      ie declare and fetch all the arguments at the top so readers can easily
      see what they are.
      5914140a
  10. Apr 14, 2008
    • Tom Lane's avatar
      Push index operator lossiness determination down to GIST/GIN opclass · 9b5c8d45
      Tom Lane authored
      "consistent" functions, and remove pg_amop.opreqcheck, as per recent
      discussion.  The main immediate benefit of this is that we no longer need
      8.3's ugly hack of requiring @@@ rather than @@ to test weight-using tsquery
      searches on GIN indexes.  In future it should be possible to optimize some
      other queries better than is done now, by detecting at runtime whether the
      index match is exact or not.
      
      Tom Lane, after an idea of Heikki's, and with some help from Teodor.
      9b5c8d45
  11. Nov 15, 2007
  12. Nov 13, 2007
  13. Nov 11, 2007
  14. Sep 30, 2007
  15. Jun 27, 2007
  16. Jun 05, 2007
    • Tom Lane's avatar
      Downgrade implicit casts to text to be assignment-only, except for the ones · 31edbadf
      Tom Lane authored
      from the other string-category types; this eliminates a lot of surprising
      interpretations that the parser could formerly make when there was no directly
      applicable operator.
      
      Create a general mechanism that supports casts to and from the standard string
      types (text,varchar,bpchar) for *every* datatype, by invoking the datatype's
      I/O functions.  These new casts are assignment-only in the to-string direction,
      explicit-only in the other, and therefore should create no surprising behavior.
      Remove a bunch of thereby-obsoleted datatype-specific casting functions.
      
      The "general mechanism" is a new expression node type CoerceViaIO that can
      actually convert between *any* two datatypes if their external text
      representations are compatible.  This is more general than needed for the
      immediate feature, but might be useful in plpgsql or other places in future.
      
      This commit does nothing about the issue that applying the concatenation
      operator || to non-text types will now fail, often with strange error messages
      due to misinterpreting the operator as array concatenation.  Since it often
      (not always) worked before, we should either make it succeed or at least give
      a more user-friendly error; but details are still under debate.
      
      Peter Eisentraut and Tom Lane
      31edbadf
  17. Mar 07, 2007
  18. 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
  19. Feb 09, 2007
  20. Oct 04, 2006
  21. Sep 10, 2006
  22. Jul 27, 2006
  23. Jul 26, 2006
    • Bruce Momjian's avatar
      /contrib/cube improvements: · 796de9c1
      Bruce Momjian authored
      Update the calling convention for all external facing functions. By
      external facing, I mean all functions that are directly referenced in
      cube.sql. Prior to my update, all functions used the older V0 calling
      convention. They now use V1.
      
      New Functions:
      
      cube(float[]), which makes a zero volume cube from a float array
      
      cube(float[], float[]), which allows the user to create a cube from
      two float arrays; one for the upper right and one for the lower left
      coordinate.
      
      cube_subset(cube, int4[]), to allow you to reorder or choose a subset of
      dimensions from a cube, using index values specified in the array.
      
      Joshua Reich
      796de9c1
  24. Jun 28, 2006
    • Teodor Sigaev's avatar
      Changes · 1f7ef548
      Teodor Sigaev authored
      * new split algorithm (as proposed in http://archives.postgresql.org/pgsql-hackers/2006-06/msg00254.php)
        * possible call pickSplit() for second and below columns
        * add spl_(l|r)datum_exists to GIST_SPLITVEC -
          pickSplit should check its values to use already defined
          spl_(l|r)datum for splitting. pickSplit should set
          spl_(l|r)datum_exists to 'false' (if they was 'true') to
          signal to caller about using spl_(l|r)datum.
        * support for old pickSplit(): not very optimal
          but correct split
      * remove 'bytes' field from GISTENTRY: in any case size of
        value is defined by it's type.
      * split GIST_SPLITVEC to two structures: one for using in picksplit
        and second - for internal use.
      * some code refactoring
      * support of subsplit to rtree opclasses
      
      TODO: add support of subsplit to contrib modules
      1f7ef548
  25. May 31, 2006
  26. Apr 03, 2006
  27. Mar 13, 2006
    • Neil Conway's avatar
      Fix a number of syntax errors in contrib modules' uninstall scripts. · 48fb6967
      Neil Conway authored
      Most of the changes add the mandatory USING clause to DROP OPERATOR
      CLASS statements.  DROP TYPE is now DROP TYPE CASCADE; without
      CASCADE a DROP TYPE fails due to the circular dependency on the
      type's I/O functions.  The DROP FUNCTION statements for the I/O
      functions have been removed, as DROP TYPE CASCADE removes them
      automatically. Patch from Michael Fuhr.
      48fb6967
  28. Mar 11, 2006
  29. Mar 07, 2006
  30. Mar 02, 2006
  31. Mar 01, 2006
  32. Feb 27, 2006
Loading