Re: ALTER TRIGGER DISABLE/ENABLE

Поиск
Список
Период
Сортировка
От Christoph Dalitz
Тема Re: ALTER TRIGGER DISABLE/ENABLE
Дата
Msg-id 20021128093357.48c9d644.christoph.dalitz@hs-niederrhein.de
обсуждение исходный текст
Ответ на Re: ALTER TRIGGER DISABLE/ENABLE  (Jean-Luc Lachance <jllachan@nsd.ca>)
Список 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 по дате отправления:

Предыдущее
От: jerome
Дата:
Сообщение: Incremental backup?
Следующее
От: "Madhavi"
Дата:
Сообщение: Createlang PLTCLU failed