Skip to content
Snippets Groups Projects
  1. Sep 19, 2003
    • Tom Lane's avatar
      Disallow foreign-key references from temp tables to permanent tables. · a13b0185
      Tom Lane authored
      Per recent discussion, this does not work because other backends can't
      reliably see tuples in a temp table and so cannot run the RI checks
      correctly.  Seems better to disallow this case than go back to accessing
      temp tables through shared buffers.  Also, disallow FK references to
      ON COMMIT DELETE ROWS tables.  We already caught this problem for normal
      TRUNCATE, but the path used by ON COMMIT didn't check.
      a13b0185
  2. Sep 16, 2003
  3. Sep 15, 2003
  4. Sep 13, 2003
  5. Aug 28, 2003
  6. Aug 26, 2003
    • Bruce Momjian's avatar
      This patch adds a new regression test for the UPDATE command. Right · 1e100176
      Bruce Momjian authored
      now all that is tested is Rod Taylor's recent addition to allow
      this syntax:
      
          UPDATE ... SET <col> = DEFAULT;
      
      If anyone else would like to add more UPDATE tests, go ahead --
      I just wanted to write a test for the above functionality, and
      couldn't see an existing test that it would be appropriate
      to add to.
      
      Neil Conway
      1e100176
  7. Aug 24, 2003
  8. Aug 19, 2003
    • Tom Lane's avatar
      Improve dynahash.c's API so that caller can specify the comparison function · 80860c32
      Tom Lane authored
      as well as the hash function (formerly the comparison function was hardwired
      as memcmp()).  This makes it possible to eliminate the special-purpose
      hashtable management code in execGrouping.c in favor of using dynahash to
      manage tuple hashtables; which is a win because dynahash knows how to expand
      a hashtable when the original size estimate was too small, whereas the
      special-purpose code was too stupid to do that.  (See recent gripe from
      Stephan Szabo about poor performance when hash table size estimate is way
      off.)  Free side benefit: when using string_hash, the default comparison
      function is now strncmp() instead of memcmp().  This should eliminate some
      part of the overhead associated with larger NAMEDATALEN values.
      80860c32
  9. Aug 18, 2003
  10. Aug 17, 2003
    • Tom Lane's avatar
      Create a 'type cache' that keeps track of the data needed for any particular · ec646dbc
      Tom Lane authored
      datatype by array_eq and array_cmp; use this to solve problems with memory
      leaks in array indexing support.  The parser's equality_oper and ordering_oper
      routines also use the cache.  Change the operator search algorithms to look
      for appropriate btree or hash index opclasses, instead of assuming operators
      named '<' or '=' have the right semantics.  (ORDER BY ASC/DESC now also look
      at opclasses, instead of assuming '<' and '>' are the right things.)  Add
      several more index opclasses so that there is no regression in functionality
      for base datatypes.  initdb forced due to catalog additions.
      ec646dbc
  11. Aug 07, 2003
  12. Aug 01, 2003
  13. Jul 29, 2003
    • Tom Lane's avatar
      Apply (a somewhat revised version of) Greg Mullane's patch to eliminate · 9c2a7c22
      Tom Lane authored
      heuristic determination of day vs month in date/time input.  Add the
      ability to specify that input is interpreted as yy-mm-dd order (which
      formerly worked, but only for yy greater than 31).  DateStyle's input
      component now has the preferred spellings DMY, MDY, or YMD; the older
      keywords European and US are now aliases for the first two of these.
      Per recent discussions on pgsql-general.
      9c2a7c22
  14. Jul 28, 2003
  15. Jul 27, 2003
    • Tom Lane's avatar
    • Tom Lane's avatar
      Error message editing in utils/adt. Again thanks to Joe Conway for doing · b6a1d25b
      Tom Lane authored
      the bulk of the heavy lifting ...
      b6a1d25b
    • Bruce Momjian's avatar
      > Joe Conway <mail@joeconway.com> writes: · 38fb906f
      Bruce Momjian authored
      >>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
    • Bruce Momjian's avatar
      The deferred trigger queue pushing to disk patch pointed out · 1e5a16cc
      Bruce Momjian authored
      that the regression tests for foreign keys didn't seem to test
      a deferred constraint that was not satisified by a later
      statement and was not made immediate by set constraints,
      so here's a simple added test with a single invalid insert and
      a commit.
      
      Stephan Szabo
      1e5a16cc
  16. Jul 25, 2003
  17. Jul 24, 2003
  18. Jul 23, 2003
  19. Jul 22, 2003
  20. Jul 21, 2003
  21. Jul 20, 2003
  22. Jul 19, 2003
  23. Jul 18, 2003
  24. Jul 15, 2003
  25. Jul 04, 2003
  26. Jul 01, 2003
  27. Jun 29, 2003
    • Tom Lane's avatar
      Support expressions of the form 'scalar op ANY (array)' and · bee21792
      Tom Lane authored
      'scalar op ALL (array)', where the operator is applied between the
      lefthand scalar and each element of the array.  The operator must
      yield boolean; the result of the construct is the OR or AND of the
      per-element results, respectively.
      
      Original coding by Joe Conway, after an idea of Peter's.  Rewritten
      by Tom to keep the implementation strictly separate from subqueries.
      bee21792
  28. Jun 27, 2003
    • Tom Lane's avatar
      Create real array comparison functions (that use the element datatype's · b3c0551e
      Tom Lane authored
      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
  29. Jun 25, 2003
    • Bruce Momjian's avatar
      Back out array mega-patch. · 111d8e52
      Bruce Momjian authored
      Joe Conway
      111d8e52
    • Tom Lane's avatar
      In ISO datestyle, never emit just HH:MM, always emit HH:MM:SS or · 621691d8
      Tom Lane authored
      HH:MM:SS.SSS... when there is a nonzero part-of-a-day field in an
      interval value.  The seconds part used to be suppressed if zero,
      but there's no equivalent behavior for timestamp, and since we're
      modeling this format on timestamp it's probably wrong.  Per complaint
      and patch from Larry Rosenman.
      621691d8
    • Bruce Momjian's avatar
      Includes: · c70e606a
      Bruce Momjian authored
      - LIKE <subtable> [ INCLUDING DEFAULTS | EXCLUDING DEFAULTS ]
      - Quick cleanup of analyze.c function prototypes.
      - New non-reserved keywords (INCLUDING, EXCLUDING, DEFAULTS), SQL 200X
      
      Opted not to extend for check constraints at this time.
      
      As per the definition that it's user defined columns, OIDs are NOT
      inherited.
      
      Doc and Source patches attached.
      
      --
      Rod Taylor <rbt@rbt.ca>
      c70e606a
Loading