Skip to content
Snippets Groups Projects
  1. Sep 03, 2002
  2. Sep 02, 2002
    • Bruce Momjian's avatar
      Add missing dblink files. · a02780ff
      Bruce Momjian authored
      a02780ff
    • Bruce Momjian's avatar
    • Bruce Momjian's avatar
      In case Florian and I don't finish his changes to this contrib before · f68fe671
      Bruce Momjian authored
      beta, at least get this stuff in.
      
      ftipatch.txt - Updates to docs and scripts.  Run in the fulltextindexdir
      WARNING - Add to fulltextindex dir
      uninstall.sql - Add to fulltextindex dir
      f68fe671
    • Bruce Momjian's avatar
      Attached is a fairly sizeable update to contrib/dblink. I'd love to get · 7b8eb0b4
      Bruce Momjian authored
      review/feedback if anyone is interested and can spend the time. But I'd
      also love to get this committed and address changes as incremental
      patches ;-), so if there are no objections, please apply.
      
      Below I'll give a synopsis of the changes. More detailed descriptions
      are now in a new doc directory under contrib/dblink. There is also a new
      
      dblink.test.sql file which will give a pretty good overview of the
      functions and their use.
      
      Joe Conway
      7b8eb0b4
    • 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
    • Bruce Momjian's avatar
      Attached is an update to contrib/tablefunc. It introduces a new · 6aa4482f
      Bruce Momjian authored
      function, connectby(), which can serve as a reference implementation for
      
      the changes made in the last few days -- namely the ability of a
      function to return an entire tuplestore, and the ability of a function
      to make use of the query provided "expected" tuple description.
      
      Description:
      
         connectby(text relname, text keyid_fld, text parent_keyid_fld,
           text start_with, int max_depth [, text branch_delim])
         - returns keyid, parent_keyid, level, and an optional branch string
         - requires anonymous composite type syntax in the FROM clause. See
           the instructions in the documentation below.
      
      Joe Conway
      6aa4482f
    • Tom Lane's avatar
      Code review for HeapTupleHeader changes. Add version number to page headers · c7a165ad
      Tom Lane authored
      (overlaying low byte of page size) and add HEAP_HASOID bit to t_infomask,
      per earlier discussion.  Simplify scheme for overlaying fields in tuple
      header (no need for cmax to live in more than one place).  Don't try to
      clear infomask status bits in tqual.c --- not safe to do it there.  Don't
      try to force output table of a SELECT INTO to have OIDs, either.  Get rid
      of unnecessarily complex three-state scheme for TupleDesc.tdhasoids, which
      has already caused one recent failure.  Improve documentation.
      c7a165ad
  3. Aug 30, 2002
  4. Aug 29, 2002
  5. Aug 26, 2002
    • Tom Lane's avatar
      Modify array operations to include array's element type OID in the · 5cabcfcc
      Tom Lane authored
      array header, and to compute sizing and alignment of array elements
      the same way normal tuple access operations do --- viz, using the
      tupmacs.h macros att_addlength and att_align.  This makes the world
      safe for arrays of cstrings or intervals, and should make it much
      easier to write array-type-polymorphic functions; as examples see
      the cleanups of array_out and contrib/array_iterator.  By Joe Conway
      and Tom Lane.
      5cabcfcc
  6. Aug 23, 2002
  7. Aug 22, 2002
  8. Aug 18, 2002
  9. Aug 17, 2002
  10. Aug 16, 2002
  11. Aug 15, 2002
    • Bruce Momjian's avatar
      August 13, 2002 · 2860041b
      Bruce Momjian authored
               Use parser of OpenFTS v0.33.
      
      --
      Teodor Sigaev
      2860041b
    • Bruce Momjian's avatar
      The attached patch changes most of the usages of sprintf() to · 66eb8df6
      Bruce Momjian authored
      snprintf() in contrib/. I didn't touch the places where pointer
      arithmatic was being used, or other areas where the fix wasn't
      trivial. I would think that few, if any, of the usages of sprintf()
      were actually exploitable, but it's probably better to be paranoid...
      
      Neil Conway
      66eb8df6
    • Bruce Momjian's avatar
      As discussed on several occasions previously, the new anonymous · 45e25445
      Bruce Momjian authored
      composite type capability makes it possible to create a system view
      based on a table function in a way that is hopefully palatable to
      everyone. The attached patch takes advantage of this, moving
      show_all_settings() from contrib/tablefunc into the backend (renamed
      all_settings(). It is defined as a builtin returning type RECORD. During
      initdb a system view is created to expose the same information presently
      available through SHOW ALL. For example:
      
      test=# select * from pg_settings where name like '%debug%';
                name          | setting
      -----------------------+---------
        debug_assertions      | on
        debug_pretty_print    | off
        debug_print_parse     | off
        debug_print_plan      | off
        debug_print_query     | off
        debug_print_rewritten | off
        wal_debug             | 0
      (7 rows)
      
      
      Additionally during initdb two rules are created which make it possible
      to change settings by updating the system view -- a "virtual table" as
      Tom put it. Here's an example:
      
      Joe Conway
      45e25445
  12. Aug 14, 2002
  13. Aug 10, 2002
    • Bruce Momjian's avatar
      Fixed very stupid but important bug: mixing calls of some founctions from · 87cfb8eb
      Bruce Momjian authored
      contrib/tsearch and contrib/ltree :)
      
      Teodor Sigaev
      87cfb8eb
    • Bruce Momjian's avatar
      The patch solves this problem, I hope... · be2de3b9
      Bruce Momjian authored
      Christopher Kings-Lynne wrote:
      > I'm still getting ltree failures on 64bit freebsd:
      >
      > sed 's,MODULE_PATHNAME,$libdir/ltree,g' ltree.sql.in >ltree.sql
      > gcc -pipe -O -g -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -DPI
      > C -DLOWER_NODE -I. -I../../src/include   -c -o ltree_io.o ltree_io.c -MMD
      > ltree_io.c: In function `ltree_in':
      > ltree_io.c:57: warning: int format, different type arg (arg 3)
      > ltree_io.c:63: warning: int format, different type arg (arg 4)
      > ltree_io.c:68: warning: int format, different type arg (arg 3)
      
      Teodor Sigaev
      be2de3b9
    • 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
  14. Aug 09, 2002
    • Tom Lane's avatar
      has_table_privilege spawns scions has_database_privilege, has_function_privilege, · 4ab8e690
      Tom Lane authored
      has_language_privilege, has_schema_privilege to let SQL queries test
      all the new privilege types in 7.3.  Also, add functions pg_table_is_visible,
      pg_type_is_visible, pg_function_is_visible, pg_operator_is_visible,
      pg_opclass_is_visible to test whether objects contained in schemas are
      visible in the current search path.  Do some minor cleanup to centralize
      accesses to pg_database, as well.
      4ab8e690
  15. Aug 06, 2002
  16. Aug 04, 2002
Loading