1. 04 4月, 2001 2 次提交
  2. 22 3月, 2001 1 次提交
  3. 08 3月, 2001 1 次提交
    • T
      Repair a number of places that didn't bother to check whether PageAddItem · b109b03f
      Tom Lane 提交于
      succeeds or not.  Revise rtree page split algorithm to take care about
      making a feasible split --- ie, will the incoming tuple actually fit?
      Failure to make a feasible split, combined with failure to notice the
      failure, account for Jim Stone's recent bug report.  I suspect that
      hash and gist indices may have the same type of bug, but at least now
      we'll get error messages rather than silent failures if so.  Also clean
      up rtree code to use Datum rather than char* where appropriate.
      b109b03f
  4. 13 2月, 2001 1 次提交
  5. 25 1月, 2001 1 次提交
  6. 13 1月, 2001 1 次提交
    • T
      Add more critical-section calls: all code sections that hold spinlocks · 6162432d
      Tom Lane 提交于
      are now critical sections, so as to ensure die() won't interrupt us while
      we are munging shared-memory data structures.  Avoid insecure intermediate
      states in some code that proc_exit will call, like palloc/pfree.  Rename
      START/END_CRIT_CODE to START/END_CRIT_SECTION, since that seems to be
      what people tend to call them anyway, and make them be called with () like
      a function call, in hopes of not confusing pg_indent.
      I doubt that this is sufficient to make SIGTERM safe anywhere; there's
      just too much code that could get invoked during proc_exit().
      6162432d
  7. 28 12月, 2000 1 次提交
  8. 09 12月, 2000 2 次提交
  9. 04 12月, 2000 1 次提交
  10. 03 12月, 2000 1 次提交
  11. 30 11月, 2000 1 次提交
  12. 17 10月, 2000 1 次提交
  13. 15 10月, 2000 1 次提交
  14. 11 10月, 2000 1 次提交
  15. 06 9月, 2000 1 次提交
    • P
      Code cleanup of user name and user id handling in the backend. The current · 6dc24961
      Peter Eisentraut 提交于
      user is now defined in terms of the user id, the user name is only computed
      upon request (for display purposes). This is kind of the opposite of the
      previous state, which would maintain the user name and compute the user id
      for permission checks.
      
      Besides perhaps saving a few cycles (integer vs string), this now creates a
      single point of attack for changing the user id during a connection, for
      purposes of "setuid" functions, etc.
      6dc24961
  16. 04 8月, 2000 1 次提交
  17. 06 7月, 2000 1 次提交
  18. 15 6月, 2000 1 次提交
    • P
      Big warnings cleanup for Solaris/GCC. Down to about 40 now, but · 44d1abeb
      Peter Eisentraut 提交于
      we'll get there one day.
      
      Use `cat' to create aclocal.m4, not `aclocal'. Some people don't
      have automake installed.
      
      Only run the autoconf rule in the top-level GNUmakefile if the
      invoker specified `make configure', don't run it automatically
      because of CVS timestamp skew.
      44d1abeb
  19. 12 6月, 2000 1 次提交
    • T
      Update sequence-related functions to new fmgr style. Remove downcasing, · 3477957b
      Tom Lane 提交于
      quote-stripping, and acl-checking tasks for these functions from the
      parser, and do them at function execution time instead.  This fixes
      the failure of pg_dump to produce correct output for nextval(Foo)
      used in a rule, and also eliminates the restriction that the argument
      of these functions must be a parse-time constant.
      3477957b
  20. 13 4月, 2000 1 次提交
  21. 15 1月, 2000 1 次提交
  22. 31 12月, 1999 1 次提交
  23. 04 10月, 1999 1 次提交
    • T
      Reimplement parsing and storage of default expressions and constraint · eabc714a
      Tom Lane 提交于
      expressions in CREATE TABLE.  There is no longer an emasculated expression
      syntax for these things; it's full a_expr for constraints, and b_expr
      for defaults (unfortunately the fact that NOT NULL is a part of the
      column constraint syntax causes a shift/reduce conflict if you try a_expr.
      Oh well --- at least parenthesized boolean expressions work now).  Also,
      stored expression for a column default is not pre-coerced to the column
      type; we rely on transformInsertStatement to do that when the default is
      actually used.  This means "f1 datetime default 'now'" behaves the way
      people usually expect it to.
      BTW, all the support code is now there to implement ALTER TABLE ADD
      CONSTRAINT and ALTER TABLE ADD COLUMN with a default value.  I didn't
      actually teach ALTER TABLE to call it, but it wouldn't be much work.
      eabc714a
  24. 19 9月, 1999 1 次提交
    • T
      Mega-commit to make heap_open/heap_openr/heap_close take an · bd272cac
      Tom Lane 提交于
      additional argument specifying the kind of lock to acquire/release (or
      'NoLock' to do no lock processing).  Ensure that all relations are locked
      with some appropriate lock level before being examined --- this ensures
      that relevant shared-inval messages have been processed and should prevent
      problems caused by concurrent VACUUM.  Fix several bugs having to do with
      mismatched increment/decrement of relation ref count and mismatched
      heap_open/close (which amounts to the same thing).  A bogus ref count on
      a relation doesn't matter much *unless* a SI Inval message happens to
      arrive at the wrong time, which is probably why we got away with this
      sloppiness for so long.  Repair missing grab of AccessExclusiveLock in
      DROP TABLE, ALTER/RENAME TABLE, etc, as noted by Hiroshi.
      Recommend 'make clean all' after pulling this update; I modified the
      Relation struct layout slightly.
      Will post further discussion to pghackers list shortly.
      bd272cac
  25. 18 7月, 1999 1 次提交
  26. 16 7月, 1999 3 次提交
  27. 26 5月, 1999 1 次提交
  28. 14 2月, 1999 1 次提交
  29. 15 12月, 1998 1 次提交
  30. 28 11月, 1998 1 次提交
  31. 01 9月, 1998 2 次提交
  32. 26 8月, 1998 1 次提交
    • M
      · 8e9d69d6
      Marc G. Fournier 提交于
      From: Massimo Dal Zotto <dz@cs.unitn.it>
      
      > sequence.patch
      >
      >       adds the missing setval command to sequences. Owner of sequences
      >       can now set the last value to any value between min and max
      >       without recreating the sequence. This is useful after loading
      >       data from external files.
      8e9d69d6
  33. 19 8月, 1998 1 次提交
    • B
      heap_fetch requires buffer pointer, must be released; heap_getnext · 79715390
      Bruce Momjian 提交于
      no longer returns buffer pointer, can be gotten from scan;
      	descriptor; bootstrap can create multi-key indexes;
      pg_procname index now is multi-key index; oidint2, oidint4, oidname
      are gone (must be removed from regression tests); use System Cache
      rather than sequential scan in many places; heap_modifytuple no
      longer takes buffer parameter; remove unused buffer parameter in
      a few other functions; oid8 is not index-able; remove some use of
      single-character variable names; cleanup Buffer variables usage
      and scan descriptor looping; cleaned up allocation and freeing of
      tuples; 18k lines of diff;
      79715390
  34. 06 8月, 1998 1 次提交
  35. 16 6月, 1998 1 次提交