1. 29 7月, 2003 1 次提交
  2. 28 7月, 2003 2 次提交
  3. 27 7月, 2003 2 次提交
    • T
      Error message editing in utils/adt. Again thanks to Joe Conway for doing · b6a1d25b
      Tom Lane 提交于
      the bulk of the heavy lifting ...
      b6a1d25b
    • B
      > Joe Conway <mail@joeconway.com> writes: · 38fb906f
      Bruce Momjian 提交于
      >>ISTM that "source" is worth knowing.
      >
      > Hm, possibly.  Any other opinions?
      
      This version has the seven fields I proposed, including "source". Here's
      an example that shows why I think it's valuable:
      
      regression=# \x
      Expanded display is on.
      regression=# select * from pg_settings where name = 'enable_seqscan';
      -[ RECORD 1 ]-----------
      name    | enable_seqscan
      setting | on
      context | user
      vartype | bool
      source  | default
      min_val |
      max_val |
      
      regression=# update pg_settings set setting = 'off' where name =
      'enable_seqscan';
      -[ RECORD 1 ]---
      set_config | off
      
      regression=# select * from pg_settings where name = 'enable_seqscan';
      -[ RECORD 1 ]-----------
      name    | enable_seqscan
      setting | off
      context | user
      vartype | bool
      source  | session
      min_val |
      max_val |
      
      regression=# alter user postgres set enable_seqscan to 'off';
      ALTER USER
      
      (log out and then back in again)
      
      regression=# \x
      Expanded display is on.
      regression=# select * from pg_settings where name = 'enable_seqscan';
      -[ RECORD 1 ]-----------
      name    | enable_seqscan
      setting | off
      context | user
      vartype | bool
      source  | user
      min_val |
      max_val |
      
      In the first case, enable_seqscan is set to its default value. After
      setting it to off, it is obvious that the value has been changed for the
      session only. In the third case, you can see that the value has been set
      specifically for the user.
      
      Joe Conway
      38fb906f
  4. 26 7月, 2003 1 次提交
  5. 25 7月, 2003 2 次提交
  6. 23 7月, 2003 2 次提交
  7. 22 7月, 2003 3 次提交
  8. 21 7月, 2003 2 次提交
  9. 20 7月, 2003 1 次提交
  10. 19 7月, 2003 1 次提交
  11. 18 7月, 2003 1 次提交
  12. 17 7月, 2003 1 次提交
  13. 15 7月, 2003 3 次提交
  14. 10 7月, 2003 1 次提交
  15. 09 7月, 2003 1 次提交
  16. 05 7月, 2003 1 次提交
  17. 04 7月, 2003 1 次提交
  18. 02 7月, 2003 1 次提交
  19. 01 7月, 2003 1 次提交
  20. 27 6月, 2003 2 次提交
    • P
      First batch of object rename commands. · b256f242
      Peter Eisentraut 提交于
      b256f242
    • T
      Create real array comparison functions (that use the element datatype's · b3c0551e
      Tom Lane 提交于
      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
  21. 26 6月, 2003 1 次提交
  22. 25 6月, 2003 3 次提交
    • B
      Updated the pg_get_constraintdef() to use conbin. Update pg_dump to use · ca64391d
      Bruce Momjian 提交于
      pg_get_constraintdef() for >= 70400.
      
      Rod Taylor <rbt@rbt.ca>
      ca64391d
    • B
      Array mega-patch. · 46bf6514
      Bruce Momjian 提交于
      Joe Conway
      46bf6514
    • B
      Add ipv6 address parsing support to 'inet' and 'cidr' data types. · 945543d9
      Bruce Momjian 提交于
              Regression tests for IPv6 operations added.
      
              Documentation updated to document IPv6 bits.
      
              Stop treating IPv4 as an "unsigned int" and IPv6 as an array of
              characters.  Instead, always use the array of characters so we
              can have one function fits all.  This makes bitncmp(), addressOK(),
              and several other functions "just work" on both address families.
      
              add family() function which returns integer 4 or 6 for IPv4 or
              IPv6.  (See examples below)  Note that to add this new function
              you will need to dump/initdb/reload or find the correct magic
              to add the function to the postgresql function catalogs.
      
              IPv4 addresses always sort before IPv6.
      
              On disk we use AF_INET for IPv4, and AF_INET+1 for IPv6 addresses.
              This prevents the need for a dump and reload, but lets IPv6 parsing
              work on machines without AF_INET6.
      
              To select all IPv4 addresses from a table:
      
                      select * from foo where family(addr) = 4 ...
      
              Order by and other bits should all work.
      
      Michael Graff
      945543d9
  23. 23 6月, 2003 1 次提交
    • T
      Revise hash join and hash aggregation code to use the same datatype- · bff0422b
      Tom Lane 提交于
      specific hash functions used by hash indexes, rather than the old
      not-datatype-aware ComputeHashFunc routine.  This makes it safe to do
      hash joining on several datatypes that previously couldn't use hashing.
      The sets of datatypes that are hash indexable and hash joinable are now
      exactly the same, whereas before each had some that weren't in the other.
      bff0422b
  24. 12 6月, 2003 2 次提交
  25. 11 6月, 2003 1 次提交
  26. 29 5月, 2003 1 次提交
    • T
      Replace functional-index facility with expressional indexes. Any column · fc8d970c
      Tom Lane 提交于
      of an index can now be a computed expression instead of a simple variable.
      Restrictions on expressions are the same as for predicates (only immutable
      functions, no sub-selects).  This fixes problems recently introduced with
      inlining SQL functions, because the inlining transformation is applied to
      both expression trees so the planner can still match them up.  Along the
      way, improve efficiency of handling index predicates (both predicates and
      index expressions are now cached by the relcache) and fix 7.3 oversight
      that didn't record dependencies of predicate expressions.
      fc8d970c
  27. 28 5月, 2003 1 次提交