1. 12 Jul, 2002 1 commit
    • Tom Lane's avatar
      Second phase of committing Rod Taylor's pg_depend/pg_constraint patch. · 7c6df91d
      Tom Lane authored
      pg_relcheck is gone; CHECK, UNIQUE, PRIMARY KEY, and FOREIGN KEY
      constraints all have real live entries in pg_constraint.  pg_depend
      exists, and RESTRICT/CASCADE options work on most kinds of DROP;
      however, pg_depend is not yet very well populated with dependencies.
      (Most of the ones that are present at this point just replace formerly
      hardwired associations, such as the implicit drop of a relation's pg_type
      entry when the relation is dropped.)  Need to add more logic to create
      dependency entries, improve pg_dump to dump constraints in place of
      indexes and triggers, and add some regression tests.
      7c6df91d
  2. 20 Jun, 2002 1 commit
  3. 29 Mar, 2002 1 commit
  4. 05 Nov, 2001 1 commit
  5. 28 Oct, 2001 1 commit
  6. 25 Oct, 2001 1 commit
  7. 24 Jan, 2001 1 commit
  8. 22 May, 2000 1 commit
    • Bruce Momjian's avatar
      I am attempting to integrate postgres (v 7.0) with an open source · 0460f050
      Bruce Momjian authored
      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
  9. 12 Apr, 2000 1 commit
  10. 31 Jan, 2000 1 commit
    • Tom Lane's avatar
      Fix problems seen in parallel regress tests when SI buffer overruns (causing · a152ebee
      Tom Lane authored
      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
  11. 26 Jan, 2000 1 commit
    • Bruce Momjian's avatar
      Add: · 5c25d602
      Bruce Momjian authored
        * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
      
      to all files copyright Regents of Berkeley.  Man, that's a lot of files.
      5c25d602
  12. 03 Oct, 1999 1 commit
    • Tom Lane's avatar
      Reimplement parsing and storage of default expressions and constraint · eabc714a
      Tom Lane authored
      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
  13. 16 Jul, 1999 1 commit
  14. 15 Jul, 1999 1 commit
  15. 25 May, 1999 1 commit
  16. 13 Feb, 1999 1 commit
  17. 01 Sep, 1998 2 commits
  18. 19 Aug, 1998 1 commit
    • Bruce Momjian's avatar
      heap_fetch requires buffer pointer, must be released; heap_getnext · 79715390
      Bruce Momjian authored
      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
  19. 12 Jul, 1998 1 commit
  20. 26 Feb, 1998 1 commit
  21. 10 Feb, 1998 2 commits
  22. 24 Jan, 1998 1 commit
  23. 08 Sep, 1997 3 commits
  24. 07 Sep, 1997 1 commit
  25. 22 Aug, 1997 1 commit
  26. 21 Aug, 1997 1 commit
  27. 19 Aug, 1997 1 commit
  28. 04 Nov, 1996 1 commit
  29. 01 Nov, 1996 1 commit
  30. 19 Oct, 1996 1 commit
  31. 16 Sep, 1996 1 commit
  32. 27 Aug, 1996 1 commit