1. 11 8月, 2002 3 次提交
    • B
      Fixed very stupid but important bug: mixing calls of some founctions from · 87cfb8eb
      Bruce Momjian 提交于
      contrib/tsearch and contrib/ltree :)
      
      Teodor Sigaev
      87cfb8eb
    • B
      The patch solves this problem, I hope... · be2de3b9
      Bruce Momjian 提交于
      
      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
    • B
      August 6, 2002 · 181ca96e
      Bruce Momjian 提交于
         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
  2. 10 8月, 2002 1 次提交
    • T
      has_table_privilege spawns scions has_database_privilege, has_function_privilege, · 4ab8e690
      Tom Lane 提交于
      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
  3. 06 8月, 2002 1 次提交
  4. 04 8月, 2002 3 次提交
  5. 03 8月, 2002 1 次提交
    • T
      ALTER TABLE DROP COLUMN works. Patch by Christopher Kings-Lynne, · 38bb77a5
      Tom Lane 提交于
      code review by Tom Lane.  Remaining issues: functions that take or
      return tuple types are likely to break if one drops (or adds!)
      a column in the table defining the type.  Need to think about what
      to do here.
      
      Along the way: some code review for recent COPY changes; mark system
      columns attnotnull = true where appropriate, per discussion a month ago.
      38bb77a5
  6. 31 7月, 2002 7 次提交
  7. 30 7月, 2002 1 次提交
    • T
      Implement CREATE/DROP OPERATOR CLASS. Work still remains: need more · ea4686e3
      Tom Lane 提交于
      documentation (xindex.sgml should be rewritten), need to teach pg_dump
      about it, need to update contrib modules that currently build pg_opclass
      entries by hand.  Original patch by Bill Studenmund, grammar adjustments
      and general update for 7.3 by Tom Lane.
      ea4686e3
  8. 28 7月, 2002 1 次提交
  9. 20 7月, 2002 2 次提交
    • B
      oid is needed, it is added at the end of the struct (after the null · b0f5086e
      Bruce Momjian 提交于
      bitmap, if present).
      
      Per Tom Lane's suggestion the information whether a tuple has an oid
      or not is carried in the tuple descriptor.  For debugging reasons
      tdhasoid is of type char, not bool.  There are predefined values for
      WITHOID, WITHOUTOID and UNDEFOID.
      
      This patch has been generated against a cvs snapshot from last week
      and I don't expect it to apply cleanly to current sources.  While I
      post it here for public review, I'm working on a new version against a
      current snapshot.  (There's been heavy activity recently; hope to
      catch up some day ...)
      
      This is a long patch;  if it is too hard to swallow, I can provide it
      in smaller pieces:
      
      Part 1:  Accessor macros
      Part 2:  tdhasoid in TupDesc
      Part 3:  Regression test
      Part 4:  Parameter withoid to heap_addheader
      Part 5:  Eliminate t_oid from HeapTupleHeader
      
      Part 2 is the most hairy part because of changes in the executor and
      even in the parser;  the other parts are straightforward.
      
      Up to part 4 the patched postmaster stays binary compatible to
      databases created with an unpatched version.  Part 5 is small (100
      lines) and finally breaks compatibility.
      
      Manfred Koizar
      b0f5086e
    • T
      Apply patches from Neil Conway. · cdf4b9af
      Tatsuo Ishii 提交于
      > Hi Tatsuo,
      >
      > I've attached a patch for the version of pgbench in CVS. It includes the
      > following changes:
      >
      >     - fix some spelling mistakes, indentation stuff, etc.
      >
      >     - minor code cleanup -- (void) args instead of (), etc.
      >
      >     - allocate the state array dynamically, so that it is only as
      >     large as needed. This reduces the memory consumption of pgbench
      >     slightly, and makes a larger MAXCLIENTS setting possible
      >
      >     - (the only controversial change) add an option "-l" to log
      >     transaction latencies to a file. The "transaction latency"
      >     is the time between when the BEGIN is issued and the transaction
      >     commits. This is written to a file, along with the client #
      >     and the transaction #. The data in the file can then be used
      >     for things like:
      >
      >         - consistency analysis: is the TPS the same through the
      >         entire run of pgbench, or does it change?
      >
      >         - more detailed stats: what is the average latency, worse-case
      >         latency, best-case latency?
      >
      >         - graphs: feed the data to gnuplot, graph latency versus. time
      >
      >         - etc.
      >
      >     I was going to store this data in memory and write it to disk
      >     at the end of the pgbench run, but that isn't feasible because
      >     the data can be very large: for example, ~70MB if benchmarking
      >     128 clients doing 100,000 transactions each.
      >
      > Cheers,
      >
      > Neil
      cdf4b9af
  10. 18 7月, 2002 2 次提交
  11. 16 7月, 2002 1 次提交
  12. 05 7月, 2002 2 次提交
  13. 03 7月, 2002 1 次提交
  14. 24 6月, 2002 4 次提交
  15. 23 6月, 2002 2 次提交
  16. 22 6月, 2002 3 次提交
  17. 21 6月, 2002 1 次提交
  18. 13 6月, 2002 4 次提交