Skip to content

Commit 2b21521

Browse files
committed
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.
1 parent 5279f68 commit 2b21521

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

doc/TODO

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
PostgreSQL TODO List
33
====================
44
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
5-
Last updated: Sat Aug 20 21:04:41 EDT 2005
5+
Last updated: Tue Aug 23 19:51:09 EDT 2005
66

77
The most recent version of this document can be viewed at
88
http://www.postgresql.org/docs/faqs.TODO.html.
@@ -638,10 +638,13 @@ Referential Integrity
638638
* Change foreign key constraint for array -> element to mean element
639639
in array?
640640
* Allow DEFERRABLE UNIQUE constraints?
641-
* Allow triggers to be disabled [trigger]
641+
* -Allow triggers to be disabled [trigger]
642+
* Allow triggers to be disabled in only the current session.
642643

643-
Currently the only way to disable triggers is to modify the system
644-
tables.
644+
This is currently possible by starting a multi-statement transaction,
645+
modifying the system tables, performing the desired SQL, restoring the
646+
system tables, and committing the transaction. ALTER TABLE ...
647+
TRIGGER requires a table lock so it is not idea for this usage.
645648

646649
* With disabled triggers, allow pg_dump to use ALTER TABLE ADD FOREIGN KEY
647650

doc/src/FAQ/TODO.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<body bgcolor="#FFFFFF" text="#000000" link="#FF0000" vlink="#A00000" alink="#0000FF">
99
<h1><a name="section_1">PostgreSQL TODO List</a></h1>
1010
<p>Current maintainer: Bruce Momjian (<a href="mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</a>)<br/>
11-
Last updated: Sat Aug 20 21:04:41 EDT 2005
11+
Last updated: Tue Aug 23 19:51:09 EDT 2005
1212
</p>
1313
<p>The most recent version of this document can be viewed at<br/>
1414
<a href="http://www.postgresql.org/docs/faqs.TODO.html">http://www.postgresql.org/docs/faqs.TODO.html</a>.
@@ -580,9 +580,12 @@ <h1><a name="section_10">Referential Integrity</a></h1>
580580
</li><li>Change foreign key constraint for array -&gt; element to mean element
581581
in array?
582582
</li><li>Allow DEFERRABLE UNIQUE constraints?
583-
</li><li>Allow triggers to be disabled [<a href="http://momjian.postgresql.org/cgi-bin/pgtodo?trigger">trigger</a>]
584-
<p> Currently the only way to disable triggers is to modify the system
585-
tables.
583+
</li><li>-<em>Allow triggers to be disabled [<a href="http://momjian.postgresql.org/cgi-bin/pgtodo?trigger">trigger</a>]</em>
584+
</li><li>Allow triggers to be disabled in only the current session.
585+
<p> This is currently possible by starting a multi-statement transaction,
586+
modifying the system tables, performing the desired SQL, restoring the
587+
system tables, and committing the transaction. ALTER TABLE ...
588+
TRIGGER requires a table lock so it is not idea for this usage.
586589
</p>
587590
</li><li>With disabled triggers, allow pg_dump to use ALTER TABLE ADD FOREIGN KEY
588591
<p> If the dump is known to be valid, allow foreign keys to be added

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy