Re: Disable Trigger for session only - Mailing list pgsql-sql

From gmb
Subject Re: Disable Trigger for session only
Date
Msg-id 1435648667132-5855844.post@n5.nabble.com
Whole thread Raw
In response to Re: Disable Trigger for session only  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-sql
Adrian Klaver-4 wrote
> That I do not know. A thought did come to mind though. That is to add a 
> reset boolean column(default ='f') to your detail table and make the 
> trigger procedure aware of it. Then when you are resetting the values to 
> zero have reset = 't' and have the trigger procedure ignore those rows. 
> Then do the 'normal' update to update the summary table.

Thanks Adrian, this will be a workable solution and I'll take it into
account.
One problem is that many will view the addition of another column for this
purpose to be unjustified.



--
View this message in context: http://postgresql.nabble.com/Disable-Trigger-for-session-only-tp5855658p5855844.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.



pgsql-sql by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Disable Trigger for session only
Next
From: gmb
Date:
Subject: Re: Disable Trigger for session only