Skip to content
Snippets Groups Projects
  1. May 16, 2003
  2. May 14, 2003
  3. Mar 10, 2003
  4. Dec 27, 2002
  5. Nov 13, 2002
  6. Nov 11, 2002
  7. Nov 10, 2002
  8. Nov 01, 2002
  9. Oct 21, 2002
  10. Oct 18, 2002
  11. Oct 03, 2002
  12. Sep 14, 2002
  13. Sep 12, 2002
  14. Sep 04, 2002
  15. Sep 02, 2002
    • Bruce Momjian's avatar
      I checked all the previous string handling errors and most of them were · a12b4e27
      Bruce Momjian authored
      already fixed by You. However there were a few left and attached patch
      should fix the rest of them.
      
      I used StringInfo only in 2 places and both of them are inside debug
      ifdefs. Only performance penalty will come from using strlen() like all
      the other code does.
      
      I also modified some of the already patched parts by changing
      snprintf(buf, 2 * BUFSIZE, ... style lines to
      snprintf(buf, sizeof(buf), ... where buf is an array.
      
      Jukka Holappa
      a12b4e27
  16. Aug 23, 2002
  17. Aug 22, 2002
  18. Aug 10, 2002
    • Bruce Momjian's avatar
      August 6, 2002 · 181ca96e
      Bruce Momjian authored
         1. Reworked patch from Andrey Oktyabrski (ano@spider.ru) with
            functions: icount, sort, sort_asc, uniq, idx, subarray
            operations: #, +, -, |, &
      
      FUNCTIONS:
      
        int   icount(int[]) - the number of elements in intarray
        int[] sort(int[], 'asc' | 'desc') - sort intarray
        int[] sort(int[]) - sort in ascending order
        int[] sort_asc(int[]),sort_desc(int[]) - shortcuts for sort
        int[] uniq(int[]) - returns unique elements
        int   idx(int[], int item) - returns index of first intarray matching element
                                     to item, or '0' if matching failed.
        int[] subarray(int[],int START [, int LEN]) - returns part of intarray
                                     starting from element number START (from 1)
                                     and length LEN.
      OPERATIONS:
      
        int[] && int[]  - overlap - returns TRUE if arrays has at least one common elements.
        int[] @  int[]  - contains - returns TRUE if left array contains right array
        int[] ~ int[]   - contained - returns TRUE if left array is contained in right array
        # int[]         - return the number of elements in array
        int[] + int     - push element to array ( add to end of array)
        int[] + int[]   - merge of arrays (right array added to the end of left one)
        int[] - int     - remove entries matched by right argument from array
        int[] - int[]   - remove left array from right
        int[] | int     - returns intarray - union of arguments
        int[] | int[]   - returns intarray as a union of two arrays
        int[] & int[]   - returns intersection of arrays
      
      Oleg Bartunov
      181ca96e
  19. Jul 30, 2002
  20. Jun 07, 2002
  21. Apr 17, 2002
    • Tom Lane's avatar
      Opclasses live in namespaces. I also took the opportunity to create · 27a54ae2
      Tom Lane authored
      an 'opclass owner' column in pg_opclass.  Nothing is done with it at
      present, but since there are plans to invent a CREATE OPERATOR CLASS
      command soon, we'll probably want DROP OPERATOR CLASS too, which
      suggests that a notion of ownership would be a good idea.
      27a54ae2
  22. Mar 06, 2002
    • Bruce Momjian's avatar
      Change made to elog: · 92288a1c
      Bruce Momjian authored
      o  Change all current CVS messages of NOTICE to WARNING.  We were going
      to do this just before 7.3 beta but it has to be done now, as you will
      see below.
      
      o Change current INFO messages that should be controlled by
      client_min_messages to NOTICE.
      
      o Force remaining INFO messages, like from EXPLAIN, VACUUM VERBOSE, etc.
      to always go to the client.
      
      o Remove INFO from the client_min_messages options and add NOTICE.
      
      Seems we do need three non-ERROR elog levels to handle the various
      behaviors we need for these messages.
      
      Regression passed.
      92288a1c
  23. Feb 07, 2002
  24. Nov 25, 2001
  25. Oct 04, 2001
  26. Sep 30, 2001
  27. Sep 23, 2001
  28. Sep 06, 2001
  29. Aug 22, 2001
  30. Aug 21, 2001
    • Tom Lane's avatar
      Restructure pg_opclass, pg_amop, and pg_amproc per previous discussions in · f933766b
      Tom Lane authored
      pgsql-hackers.  pg_opclass now has a row for each opclass supported by each
      index AM, not a row for each opclass name.  This allows pg_opclass to show
      directly whether an AM supports an opclass, and furthermore makes it possible
      to store additional information about an opclass that might be AM-dependent.
      pg_opclass and pg_amop now store "lossy" and "haskeytype" information that we
      previously expected the user to remember to provide in CREATE INDEX commands.
      Lossiness is no longer an index-level property, but is associated with the
      use of a particular operator in a particular index opclass.
      
      Along the way, IndexSupportInitialize now uses the syscaches to retrieve
      pg_amop and pg_amproc entries.  I find this reduces backend launch time by
      about ten percent, at the cost of a couple more special cases in catcache.c's
      IndexScanOK.
      
      Initial work by Oleg Bartunov and Teodor Sigaev, further hacking by Tom Lane.
      
      initdb forced.
      f933766b
  31. Aug 10, 2001
    • Tom Lane's avatar
      Make OIDs optional, per discussions in pghackers. WITH OIDS is still the · bf56f075
      Tom Lane authored
      default, but OIDS are removed from many system catalogs that don't need them.
      Some interesting side effects: TOAST pointers are 20 bytes not 32 now;
      pg_description has a three-column key instead of one.
      
      Bugs fixed in passing: BINARY cursors work again; pg_class.relhaspkey
      has some usefulness; pg_dump dumps comments on indexes, rules, and
      triggers in a valid order.
      
      initdb forced.
      bf56f075
    • Bruce Momjian's avatar
      1. null-safe interface to GiST · 13923be7
      Bruce Momjian authored
         (as proposed in http://fts.postgresql.org/db/mw/msg.html?mid=1028327)
      
      2. support for 'pass-by-value' arguments - to test this
         we used special opclass for int4 with values in range [0-2^15]
         More testing will be done after resolving problem with
         index_formtuple and implementation of B-tree using GiST
      
      3. small patch to contrib modules (seg,cube,rtree_gist,intarray) -
         mark functions as 'isstrict' where needed.
      
      Oleg Bartunov
      13923be7
  32. Aug 04, 2001
  33. Jun 18, 2001
    • Bruce Momjian's avatar
      The attached patch enables the contrib subtree to build cleanly under · 558fae16
      Bruce Momjian authored
      Cygwin with the possible exception of mSQL-interface.  Since I don't
      have mSQL installed, I skipped this tool.
      
      Except for dealing with a missing getopt.h (oid2name) and HUGE (seg),
      the bulk of the patch uses the standard PostgreSQL approach to deal with
      Windows DLL issues.
      
      I tested the build aspect of this patch under Cygwin and Linux without
      any ill affects.  Note that I did not actually attempt to test the code
      for functionality.
      
      The procedure to apply the patch is as follows:
      
          $ # save the attachment as /tmp/contrib.patch
          $ # change directory to the top of the PostgreSQL source tree
          $ patch -p0 </tmp/contrib.patch
      
      Jason
      558fae16
  34. Jun 11, 2001
  35. May 31, 2001
Loading