From 2b215215ad2e9d70f05a4a1555a5b1dfac253316 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 23 Aug 2005 23:51:18 +0000 Subject: [PATCH] Mark item as complete, add another: < * Allow triggers to be disabled [trigger] > * -Allow triggers to be disabled [trigger] > * Allow triggers to be disabled in only the current session. < Currently the only way to disable triggers is to modify the system < tables. > This is currently possible by starting a multi-statement transaction, > modifying the system tables, performing the desired SQL, restoring the > system tables, and committing the transaction. ALTER TABLE ... > TRIGGER requires a table lock so it is not idea for this usage. --- doc/TODO | 11 +++++++---- doc/src/FAQ/TODO.html | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/doc/TODO b/doc/TODO index 6fb373cb41..e3c99a0c77 100644 --- a/doc/TODO +++ b/doc/TODO @@ -2,7 +2,7 @@ PostgreSQL TODO List ==================== Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us) -Last updated: Sat Aug 20 21:04:41 EDT 2005 +Last updated: Tue Aug 23 19:51:09 EDT 2005 The most recent version of this document can be viewed at http://www.postgresql.org/docs/faqs.TODO.html. @@ -638,10 +638,13 @@ Referential Integrity * Change foreign key constraint for array -> element to mean element in array? * Allow DEFERRABLE UNIQUE constraints? -* Allow triggers to be disabled [trigger] +* -Allow triggers to be disabled [trigger] +* Allow triggers to be disabled in only the current session. - Currently the only way to disable triggers is to modify the system - tables. + This is currently possible by starting a multi-statement transaction, + modifying the system tables, performing the desired SQL, restoring the + system tables, and committing the transaction. ALTER TABLE ... + TRIGGER requires a table lock so it is not idea for this usage. * With disabled triggers, allow pg_dump to use ALTER TABLE ADD FOREIGN KEY diff --git a/doc/src/FAQ/TODO.html b/doc/src/FAQ/TODO.html index edd160c3f7..953e9df335 100644 --- a/doc/src/FAQ/TODO.html +++ b/doc/src/FAQ/TODO.html @@ -8,7 +8,7 @@

PostgreSQL TODO List

Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
-Last updated: Sat Aug 20 21:04:41 EDT 2005 +Last updated: Tue Aug 23 19:51:09 EDT 2005

The most recent version of this document can be viewed at
http://www.postgresql.org/docs/faqs.TODO.html. @@ -580,9 +580,12 @@ first.

  • Change foreign key constraint for array -> element to mean element in array?
  • Allow DEFERRABLE UNIQUE constraints? -
  • Allow triggers to be disabled [trigger] -

    Currently the only way to disable triggers is to modify the system - tables. +

  • -Allow triggers to be disabled [trigger] +
  • Allow triggers to be disabled in only the current session. +

    This is currently possible by starting a multi-statement transaction, + modifying the system tables, performing the desired SQL, restoring the + system tables, and committing the transaction. ALTER TABLE ... + TRIGGER requires a table lock so it is not idea for this usage.

  • With disabled triggers, allow pg_dump to use ALTER TABLE ADD FOREIGN KEY

    If the dump is known to be valid, allow foreign keys to be added -- 2.11.0