Re: Disabling triggers on a relation.

From: "shreedhar" <shreedhar(at)lucidindia(dot)net>
To: "Bhuvan A" <bhuvansql(at)myrealbox(dot)com>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Disabling triggers on a relation.
Date: 2002-12-05 04:54:34
Message-ID: 001a01c29c1a$695f4810$1201a8c0@a4005
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi Bhuvan & Mallah,

Have you checked desabling of triggers. What reltriggers represent. If we
set it as '0' to enable by what value it has to be updated.

Sreedhar
----- Original Message -----
From: "Bhuvan A" <bhuvansql(at)myrealbox(dot)com>
To: <pgsql-admin(at)postgresql(dot)org>
Sent: Monday, December 02, 2002 3:16 PM
Subject: Re: [ADMIN] Disabling triggers on a relation.

>
> > What is the correct method of temporarily
> > disabling all triggers from a table?
>
> Disable:
> db=# update pg_class set reltriggers = '0' where relname = 'your_table';
>
> Enable:
> db=# update pg_class set reltriggers = (select count(*) from pg_trigger
> where pg_class.oid = tgrelid) where relname = 'your_table';
>
> >
> >
> > also is there any command/function to show the
> > trigger defination ? like pg_index_def does for indexes?
> >
>
> Not sure.
>
> regards,
> bhuvaneswaran
>
>
> ---------------------------(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)
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message shreedhar 2002-12-05 05:08:46 What will be the entry in pg_hba.conf to connect as LocalHost
Previous Message Bruce Momjian 2002-12-05 03:35:27 Re: alter database name length