Add trigger emails.
authorBruce Momjian
Thu, 28 Nov 2002 20:05:13 +0000 (20:05 +0000)
committerBruce Momjian
Thu, 28 Nov 2002 20:05:13 +0000 (20:05 +0000)
doc/TODO.detail/trigger

index e7cc1edc0005a4436dbb2d977aace2b41c14a44a..315c65da98b8dd955bcbcd9c2bdc142b28744648 100644 (file)
@@ -681,3 +681,144 @@ Bruce Momjian wrote:
 > 
 > http://archives.postgresql.org
 
+From [email protected] Thu Nov 28 03:35:25 2002
+Return-path: 
+Received: from hera.hs-niederrhein.de (hera.hs-niederrhein.de [194.94.120.3])
+   by candle.pha.pa.us (8.11.6/8.10.1) with ESMTP id gAS8ZLP06871
+   for ; Thu, 28 Nov 2002 03:35:23 -0500 (EST)
+Received: (from root@localhost)
+   by hera.hs-niederrhein.de (8.11.6+Sun/8.11.6) id gAS8ZGZ16207;
+   Thu, 28 Nov 2002 09:35:16 +0100 (CET)
+Received: from pc03230 (pc03230.kr.hs-niederrhein.de [194.94.121.230])
+   by hera.hs-niederrhein.de (8.11.6+Sun/8.11.6) with SMTP id gAS8ZDP16199;
+   Thu, 28 Nov 2002 09:35:13 +0100 (CET)
+Date: Thu, 28 Nov 2002 09:33:57 +0100
+From: Christoph Dalitz 
+To: Jean-Luc Lachance 
+cc: Bruce Momjian ,
+   Tino Wildenhain [email protected]
+Subject: Re: ALTER TRIGGER DISABLE/ENABLE
+Message-ID: <[email protected]>
+In-Reply-To: <[email protected]>
+References: <[email protected]>
+Organization: FH Niederrhein
+X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i386-debian-linux-gnu)
+MIME-Version: 1.0
+Content-Type: text/plain; charset=US-ASCII
+Content-Transfer-Encoding: 7bit
+X-Virus-Scanned: by AMaViS perl-11
+Status: OR
+
+On Tue, 26 Nov 2002 14:41:47 -0500
+Jean-Luc Lachance  wrote:
+>
+> I think thte sintax should be:
+> 
+> ALTER TABLE DISABLE|ENABLE TRIGGER {trigger name}|ALL
+> 
+This would make no sense:
+
+It could be the syntax if the statement for creating a trigger
+where "ALTER TABLE ADD TRIGGER".
+
+The statement for creating a trigger is however "CREATE TRIGEER".
+
+Consequently the statement for changing a trigger must be "ALTER TRIGGER"
+and not "ALTER TABLE".
+
+Switching off all triggers for an individual table at once would be
+convenient of course and can be easily achieved with "ALTER TRIGGER" as well:
+just write a little PL/SQL procedure "disable_triggers()" that takes a
+tablename as input and disables all triggers on it.
+
+Christoph Dalitz
+
+From [email protected] Thu Nov 28 11:04:17 2002
+Return-path: 
+Received: from postgresql.org (postgresql.org [64.49.215.8])
+   by candle.pha.pa.us (8.11.6/8.10.1) with ESMTP id gASG4EP11817
+   for ; Thu, 28 Nov 2002 11:04:15 -0500 (EST)
+Received: from localhost (postgresql.org [64.49.215.8])
+   by postgresql.org (Postfix) with ESMTP
+   id 0E622476313; Thu, 28 Nov 2002 11:03:52 -0500 (EST)
+Received: from postgresql.org (postgresql.org [64.49.215.8])
+   by postgresql.org (Postfix) with SMTP
+   id 153FF476713; Thu, 28 Nov 2002 11:03:36 -0500 (EST)
+Received: from localhost (postgresql.org [64.49.215.8])
+   by postgresql.org (Postfix) with ESMTP id 4A4AA475E41
+   for ; Thu, 28 Nov 2002 11:03:19 -0500 (EST)
+Received: from beamish.nsd.ca (unknown [205.150.156.194])
+   by postgresql.org (Postfix) with ESMTP id 30F56475AFF
+   for ; Thu, 28 Nov 2002 11:03:18 -0500 (EST)
+Received: (from smap@localhost)
+   by beamish.nsd.ca (8.9.3/8.9.3) id LAA12283;
+   Thu, 28 Nov 2002 11:02:54 -0500
+X-Authentication-Warning: beamish.nsd.ca: smap set sender to  using -f
+Received: from reddog.nsd.ca(192.168.101.30) by beamish.nsd.ca via smap (V2.1/2.1+anti-relay+anti-spam)
+   id xma012273; Thu, 28 Nov 02 11:02:35 -0500
+Received: from nsd.ca (jllachan-linux.nsd.ca [192.168.101.148])
+   by reddog.nsd.ca (8.8.7/8.8.7) with ESMTP id LAA00966;
+   Thu, 28 Nov 2002 11:01:23 -0500
+Message-ID: <[email protected]>
+Date: Thu, 28 Nov 2002 11:03:09 -0500
+From: Jean-Luc Lachance 
+X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.9-31 i686)
+X-Accept-Language: en
+MIME-Version: 1.0
+To: Christoph Dalitz 
+cc: Bruce Momjian ,
+   Tino Wildenhain [email protected]
+Subject: Re: [GENERAL] ALTER TRIGGER DISABLE/ENABLE
+References: <[email protected]>
+Content-Type: text/plain; charset=us-ascii
+Content-Transfer-Encoding: 7bit
+X-Virus-Scanned: by AMaViS new-20020517
+Precedence: bulk
+X-Virus-Scanned: by AMaViS new-20020517
+Status: OR
+
+Sementics.
+
+The trigger belongs to the table. 
+The trigger is not modified. 
+The ability of the table being modified to call it is modified.  
+Plus, if you want all the triggers on a table to be disabled the ALTER
+TRIGGER is not enough.
+
+JLL
+
+
+Christoph Dalitz wrote:
+> 
+> On Tue, 26 Nov 2002 14:41:47 -0500
+> Jean-Luc Lachance  wrote:
+> >
+> > I think thte sintax should be:
+> >
+> > ALTER TABLE DISABLE|ENABLE TRIGGER {trigger name}|ALL
+> >
+> This would make no sense:
+> 
+> It could be the syntax if the statement for creating a trigger
+> where "ALTER TABLE ADD TRIGGER".
+> 
+> The statement for creating a trigger is however "CREATE TRIGEER".
+> 
+> Consequently the statement for changing a trigger must be "ALTER TRIGGER"
+> and not "ALTER TABLE".
+> 
+> Switching off all triggers for an individual table at once would be
+> convenient of course and can be easily achieved with "ALTER TRIGGER" as well:
+> just write a little PL/SQL procedure "disable_triggers()" that takes a
+> tablename as input and disables all triggers on it.
+> 
+> Christoph Dalitz
+
+---------------------------(end of broadcast)---------------------------
+TIP 5: Have you checked our extensive FAQ?
+
+http://www.postgresql.org/users-lounge/docs/faq.html
+