From: shreedhar <shreedhar@lucidindia.net>
To: Bhuvan A <bhuvansql@myrealbox.com>
To: pgsql-admin@postgresql.org
Subject: Re: Disabling triggers on a relation.
Date: Thu, 5 Dec 2002 10:24:34 +0530
Message-ID: <001a01c29c1a$695f4810$1201a8c0@a4005> (raw)
References: <Pine.LNX.4.44.0212021514010.1504-100000@Bhuvan.bksys.co.in>
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@myrealbox.com>
To: <pgsql-admin@postgresql.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@postgresql.org)
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: shreedhar@lucidindia.net, bhuvansql@myrealbox.com
Subject: Re: Disabling triggers on a relation.
In-Reply-To: <001a01c29c1a$695f4810$1201a8c0@a4005>
References: <Pine.LNX.4.44.0212021514010.1504-100000@Bhuvan.bksys.co.in> <001a01c29c1a$695f4810$1201a8c0@a4005>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox