Subject | Re: [firebird-support] Disable trigger? |
---|---|
Author | Paul Vinkenoog |
Post date | 2011-03-15T17:12:54Z |
Ann Harrison wrote:
Cheers,
Paul Vinkenoog
> > execute statement 'alter trigger MyTrigger inactive';You're completely right.
> > ...
> > execute statement 'alter trigger MyTrigger active';
> >
> > You need EXECUTE STATEMENT to circumvent the no-DDL rule in PSQL.
> >
>
> Paul's answer is technically correct, but practically disastrous. Setting
> a trigger to be inactive is a system-wide event and will stop other transactions
> on other connections from logging their changes.
Cheers,
Paul Vinkenoog