pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Philippe Lang <philippe.lang@attiksystem.ch>
Cc: pgsql-sql@postgresql.org
Subject: Re: Disable trigger with Postgresql 7.4.x?
Date: Tue, 24 Aug 2004 07:20:39 -0400 (EDT)
Message-ID: <200408241120.i7OBKdt25114@candle.pha.pa.us> (raw)
In-Reply-To: <6C0CF58A187DA5479245E0830AF84F420803D3@poweredge.attiksystem.ch>

Philippe Lang wrote:
> Hello,
> 
> I read in an old thread
> 
> http://archives.postgresql.org/pgsql-hackers/2002-08/msg00079.php
> 
> ... that starting with Postgresql 7.3, there is a new way to disable and
> enable triggers in Postgresql. The "old" way was:
> 
> update pg_class set reltriggers=0 where relname = 'YOUR_TABLE_NAME';
> update pg_class set reltriggers = count(*) from pg_trigger where
> pg_class.oid=tgrelid and relname='YOUR_TABLE_NAME';
> 
> What is the recommended way of doing that under Postgresql 7.4.x?

Same. We haven't added a better way yet.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (2+ messages)

Message-ID: <200408241120.i7OBKdt25114@candle.pha.pa.us>
Permalink:  ../200408241120.i7OBKdt25114@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200408241120.i7OBKdt25114@candle.pha.pa.us

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: pgman@candle.pha.pa.us, philippe.lang@attiksystem.ch
  Subject: Re: Disable trigger with Postgresql 7.4.x?
  In-Reply-To: <200408241120.i7OBKdt25114@candle.pha.pa.us>

* 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