Re: triggers and FK cascades

From: Vincent Veyron <vv(dot)lists(at)wanadoo(dot)fr>
To: Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)com>
Cc: David Johnston <polobo(at)yahoo(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: triggers and FK cascades
Date: 2011-03-19 19:40:33
Message-ID: 1300563633.2407.2.camel@asus-1001PX.home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Le vendredi 18 mars 2011 à 08:20 +0000, Grzegorz Jaśkiewicz a écrit :
> There's a generic trigger that sends a signal to a process whenever
> changes are made (via listen/notify mechanism), but when FK cascade
> fires it will cause a mass amount of notifies to be send out and I
> want to avoid it.
>

I have no personal experience with this, but citing an answer to a
similar question by Vibhor Kumar from a couple days ago :

use following command:
ALTER TABLE <tablename> DISABLE TRIGGER [ trigger_name | ALL | USER ]

--
Vincent Veyron
http://marica.fr/
Logiciel de gestion des sinistres pour le service juridique

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vibhor Kumar 2011-03-19 22:00:05 Re: Insert value input syntax of an array of types without ARRAY/ROW nor casting?
Previous Message Stefan Keller 2011-03-19 16:20:44 Re: Insert value input syntax of an array of types without ARRAY/ROW nor casting?