Disabling Triggers - Mailing list pgsql-general

From Mark Borins
Subject Disabling Triggers
Date
Msg-id 111582284102@smtp-2.vancouver.ipapp.com
Whole thread Raw
Responses Re: Disabling Triggers  (Franco Bruno Borghesi <fborghesi@gmail.com>)
Re: Disabling Triggers  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Disabling Triggers  (Richard Huxton <dev@archonet.com>)
Re: Disabling Triggers  (Alban Hertroys <alban@magproductions.nl>)
List pgsql-general

I am creating a system where I have a trigger on three different tables.  There is a particular Boolean field in each of these tables that when it is set in table it should be set the same in the other two.

 

So I figured I could put a trigger on each table that when the Boolean field was updated it would go and update the other 2.

 

However, I am concerned about cascading trigger calls.

 

Does anyone know if it is possible to run an update statement on a table and for only that statement disable the trigger on the table?

pgsql-general by date:

Previous
From: Neil Conway
Date:
Subject: Re: [PERFORM] "Hash index" vs. "b-tree index" (PostgreSQL
Next
From: "Madeleine Theile"
Date:
Subject: alter table owner doesn't update acl information