1. 04 7月, 2000 3 次提交
  2. 03 7月, 2000 2 次提交
  3. 01 7月, 2000 1 次提交
  4. 19 6月, 2000 2 次提交
    • T
      Clean up bogosities in pg_opclass, pg_amop, pg_amproc. There are amproc · c590273f
      Tom Lane 提交于
      entries now for int8 and network hash indexes.  int24_ops and int42_ops
      are gone.  pg_opclass no longer contains multiple entries claiming to be
      the default opclass for the same datatype.  opr_sanity regress test
      extended to catch errors like these in the future.
      c590273f
    • T
      Reimplement nodeMaterial to use a temporary BufFile (or even memory, if the · 1ee26b77
      Tom Lane 提交于
      materialized tupleset is small enough) instead of a temporary relation.
      This was something I was thinking of doing anyway for performance, and Jan
      says he needs it for TOAST because he doesn't want to cope with toasting
      noname relations.  With this change, the 'noname table' support in heap.c
      is dead code, and I have accordingly removed it.  Also clean up 'noname'
      plan handling in planner --- nonames are either sort or materialize plans,
      and it seems less confusing to handle them separately under those names.
      1ee26b77
  5. 15 6月, 2000 1 次提交
  6. 13 6月, 2000 1 次提交
  7. 09 6月, 2000 1 次提交
  8. 05 6月, 2000 1 次提交
  9. 02 6月, 2000 1 次提交
  10. 30 5月, 2000 1 次提交
  11. 29 5月, 2000 1 次提交
    • T
      First round of changes for new fmgr interface. fmgr itself and the · 0a7fb4e9
      Tom Lane 提交于
      key call sites are changed, but most called functions are still oldstyle.
      An exception is that the PL managers are updated (so, for example, NULL
      handling now behaves as expected in plperl and plpgsql functions).
      NOTE initdb is forced due to added column in pg_proc.
      0a7fb4e9
  12. 22 5月, 2000 1 次提交
    • B
      I am attempting to integrate postgres (v 7.0) with an open source · 0460f050
      Bruce Momjian 提交于
      project I am working on (Recall - a distributed, fault-tolerant,
      replicated, storage framework @ http://www.fault-tolerant.org).
      Recall is written in C++.  I need to include the postgres headers and
      there are some problems when including the headers w/C++.
      
      Attached is a patch generated from postgres/src that fixes my problems.
      I was hoping to get this into the main source.  It's very small (2k) and
      3 files are changed: backend/utils/fmgr/fmgr.c,
      backend/utils/Gen_fmgrtab.sh.in, and include/access/tupdesc.h.
      
      In C++, you get a multiply defined symbol because the variable
      (FmgrInfo *fmgr_pl_finfo) is defined in the header (the patch moves it
      to the .c file).  The other problem in tupdesc.h is the use of typeid
      is a problem in c++ (I renamed it to oidtypeid).
      
      Thanks,
      Neal Norwitz
      0460f050
  13. 13 4月, 2000 1 次提交
  14. 17 3月, 2000 1 次提交
  15. 15 3月, 2000 1 次提交
  16. 21 2月, 2000 1 次提交
  17. 18 2月, 2000 1 次提交
    • T
      Replace inefficient _bt_invokestrat calls with direct calls to the · 8cb62426
      Tom Lane 提交于
      appropriate btree three-way comparison routine.  Not clear why the
      three-way comparison routines were being used in some paths and not
      others in btree --- incomplete changes by someone long ago, maybe?
      Anyway, this makes for a nice speedup in CREATE INDEX.
      8cb62426
  18. 31 1月, 2000 1 次提交
    • T
      Fix problems seen in parallel regress tests when SI buffer overruns (causing · a152ebee
      Tom Lane 提交于
      syscache and relcache flushes).  Relcache entry rebuild now preserves
      original tupledesc, rewrite rules, and triggers if possible, so that pointers
      to these things remain valid --- if these things change while relcache entry
      has positive refcount, we elog(ERROR) to avoid later crash.  Arrange for
      xact-local rels to be rebuilt when an SI inval message is seen for them,
      so that they are updated by CommandCounterIncrement the same as regular rels.
      (This is useful because of Hiroshi's recent changes to process our own SI
      messages at CommandCounterIncrement time.)  This allows simplification of
      some routines that previously hacked around the lack of an automatic update.
      catcache now keeps its own copy of tupledesc for its relation, rather than
      depending on the relcache's copy; this avoids needing to reinitialize catcache
      during a cache flush, which saves some cycles and eliminates nasty circularity
      problems that occur if a cache flush happens while trying to initialize a
      catcache.
      Eliminate a number of permanent memory leaks that used to happen during
      catcache or relcache flush; not least of which was that catcache never
      freed any cached tuples!  (Rule parsetree storage is still leaked, however;
      will fix that separately.)
      Nothing done yet about code that uses tuples retrieved by SearchSysCache
      for longer than is safe.
      a152ebee
  19. 26 1月, 2000 1 次提交
    • B
      Add: · 5c25d602
      Bruce Momjian 提交于
        * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
      
      to all files copyright Regents of Berkeley.  Man, that's a lot of files.
      5c25d602
  20. 23 1月, 2000 1 次提交
  21. 22 1月, 2000 1 次提交
  22. 11 1月, 2000 2 次提交
  23. 30 12月, 1999 1 次提交
  24. 21 12月, 1999 1 次提交
  25. 17 12月, 1999 1 次提交
  26. 24 11月, 1999 1 次提交
  27. 23 10月, 1999 1 次提交
  28. 18 10月, 1999 1 次提交
    • T
      Final stage of psort reconstruction work: replace psort.c with · 26c48b5e
      Tom Lane 提交于
      a generalized module 'tuplesort.c' that can sort either HeapTuples or
      IndexTuples, and is not tied to execution of a Sort node.  Clean up
      memory leakages in sorting, and replace nbtsort.c's private implementation
      of mergesorting with calls to tuplesort.c.
      26c48b5e
  29. 11 10月, 1999 1 次提交
  30. 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
  31. 27 9月, 1999 1 次提交
  32. 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
  33. 09 8月, 1999 1 次提交
  34. 19 7月, 1999 1 次提交
  35. 17 7月, 1999 1 次提交