Re: disabling triggers - Mailing list pgsql-sql

From Josh Berkus
Subject Re: disabling triggers
Date
Msg-id 200306171058.44814.josh@agliodbs.com
Whole thread Raw
In response to disabling triggers  (<mallah@trade-india.com>)
Responses Re: disabling triggers
List pgsql-sql
Mallah,

> Is setting reltriggers=0 on pg_class an  accepatble way of
> disabling triggers on a table temporarily?

Yes.  pg_dump does this.

> secondly is it worth having commands like
> alter trigger <triggername> inactive;
> alter trigger <triggername> active ;
> i feel such commands exists on Oracle.

No, since DROP TRIGGER ... CREATE TRIGGER does the same thing in Postgres.

--
-Josh BerkusAglio Database SolutionsSan Francisco



pgsql-sql by date:

Previous
From:
Date:
Subject: disabling triggers
Next
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] Our FLOAT(p) precision does not conform to spec