From: | "shreedhar" <shreedhar(at)lucidindia(dot)net> |
---|---|
To: | <alain(dot)bruneau(at)acoss(dot)fr>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: trigger question. |
Date: | 2003-03-11 05:06:36 |
Message-ID: | 00da01c2e78c$00458930$1201a8c0@a4005 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
You can drop and create triggers with the following commands.
DROP TRIGGER TriggerName ON TableName;
CREATE TRIGGER TriggerName AFTER/BEFORE INSERT/DELETE/UPDATE ON TableName
FOR EACH ROW EXECUTE PROCEDURE ProcedureName;
Sreedhar
----- Original Message -----
From: <alain(dot)bruneau(at)acoss(dot)fr>
To: <pgsql-general(at)postgresql(dot)org>
Sent: Tuesday, March 25, 2003 9:31 PM
Subject: [GENERAL] trigger question.
> Hi.
> Has anyone migrated from Oracle to Postgresql there ?
>
> I have a problem with trigger. I don't find a way to disable it.
> Oracle statement :
> ALTER TRIGGER "TRG_DT_ACTI" ENABLE
> or
> ALTER TRIGGER "TRG_DT_ACTI" DISABLE
> I am looking for a way to do the same thing with postgresql.
>
> I want to disable trigger before COPY and enable it after.
> How can I do that?
>
> Thank you for your help.
>
> Regards,
> Alain.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
From | Date | Subject | |
---|---|---|---|
Next Message | Patrick Macdonald | 2003-03-11 05:17:38 | Re: 7.4? |
Previous Message | Tom Lane | 2003-03-11 04:37:14 | Re: ERROR: out of free buffers: time to abort! |