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. 26 Apr, 2002 1 commit
  4. 01 Apr, 2002 1 commit
    • Tom Lane's avatar
      Add tgconstrrelid to stored Trigger structures, make RI trigger functions · 789ddcb5
      Tom Lane authored
      depend on this rather than the trigger argument strings to locate the
      other relation to test.  This makes RI triggers function properly in
      the presence of schemas and temp tables.  Along the way, fix bogus lack
      of locking in RI triggers, handle quoting of names fully correctly,
      compute required sizes of query buffers with some semblance of accuracy.
      789ddcb5
  5. 29 Mar, 2002 1 commit
  6. 16 Nov, 2001 1 commit
  7. 12 Nov, 2001 1 commit
  8. 05 Nov, 2001 1 commit
  9. 28 Oct, 2001 1 commit
  10. 25 Oct, 2001 1 commit
  11. 01 Jun, 2001 1 commit
    • Tom Lane's avatar
      Clean up some minor problems exposed by further thought about Panon's bug · 0b370ea7
      Tom Lane authored
      report on old-style functions invoked by RI triggers.  We had a number of
      other places that were being sloppy about which memory context FmgrInfo
      subsidiary data will be allocated in.  Turns out none of them actually
      cause a problem in 7.1, but this is for arcane reasons such as the fact
      that old-style triggers aren't supported anyway.  To avoid getting burnt
      later, I've restructured the trigger support so that we don't keep trigger
      FmgrInfo structs in relcache memory.  Some other related cleanups too:
      it's not really necessary to call fmgr_info at all while setting up
      the index support info in relcache entries, because those ScanKeyEntry
      structs are never used to invoke the functions.  This should speed up
      relcache initialization a tiny bit.
      0b370ea7
  12. 22 Mar, 2001 1 commit
  13. 14 Mar, 2001 1 commit
  14. 24 Jan, 2001 1 commit
  15. 22 Jan, 2001 1 commit
  16. 18 Dec, 2000 1 commit
  17. 08 Jun, 2000 1 commit
  18. 29 May, 2000 1 commit
  19. 12 Apr, 2000 1 commit
  20. 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
  21. 06 Jan, 2000 1 commit
  22. 29 Sep, 1999 1 commit
    • Jan Wieck's avatar
      This is part #1 for of the DEFERRED CONSTRAINT TRIGGER support. · 1547ee01
      Jan Wieck authored
      Implements the CREATE CONSTRAINT TRIGGER and SET CONSTRAINTS commands.
      
      TODO:
          Generic builtin trigger procedures
          Automatic execution of appropriate CREATE CONSTRAINT... at CREATE TABLE
          Support of new trigger type in pg_dump
          Swapping of huge # of events to disk
      
      Jan
      1547ee01
  23. 16 Jul, 1999 1 commit
  24. 15 Jul, 1999 1 commit
  25. 09 Mar, 1999 1 commit
    • Marc G. Fournier's avatar
      · f34240de
      Marc G. Fournier authored
      Changes to fix/improve the dynamic loading on NT
      
      From: Horak Daniel <horak@mmp.plzen-city.cz>
      f34240de
  26. 13 Feb, 1999 1 commit
  27. 15 Dec, 1998 1 commit
  28. 01 Sep, 1998 1 commit
  29. 26 Feb, 1998 1 commit
  30. 26 Nov, 1997 1 commit
  31. 11 Sep, 1997 1 commit
  32. 08 Sep, 1997 2 commits
  33. 07 Sep, 1997 1 commit
  34. 04 Sep, 1997 1 commit
  35. 01 Sep, 1997 1 commit
  36. 31 Aug, 1997 1 commit