Re: ALTER TRIGGER DISABLE/ENABLE - Mailing list pgsql-general

From Christoph Dalitz
Subject Re: ALTER TRIGGER DISABLE/ENABLE
Date
Msg-id 20021128093357.48c9d644.christoph.dalitz@hs-niederrhein.de
Whole thread Raw
In response to Re: ALTER TRIGGER DISABLE/ENABLE  (Jean-Luc Lachance <jllachan@nsd.ca>)
List pgsql-general
On Tue, 26 Nov 2002 14:41:47 -0500
Jean-Luc Lachance <jllachan@nsd.ca> 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

pgsql-general by date:

Previous
From: jerome
Date:
Subject: Incremental backup?
Next
From: "Madhavi"
Date:
Subject: Createlang PLTCLU failed