Re: disabling triggers

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: <mallah(at)trade-india(dot)com>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: disabling triggers
Date: 2003-06-17 17:58:44
Message-ID: 200306171058.44814.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Berkus
Aglio Database Solutions
San Francisco

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Eisentraut 2003-06-17 18:04:42 Re: [HACKERS] Our FLOAT(p) precision does not conform to spec
Previous Message mallah 2003-06-17 17:34:14 disabling triggers