agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: gmb <gmbouwer@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: Disable Trigger for session only
Date: Tue, 30 Jun 2015 00:17:47 -0700 (MST)
Message-ID: <1435648667132-5855844.post@n5.nabble.com> (raw)
In-Reply-To: <55915587.2020606@aklaver.com>
References: <1435563798887-5855658.post@n5.nabble.com>
	<559142D5.2080608@aklaver.com>
	<1435587185136-5855697.post@n5.nabble.com>
	<55915587.2020606@aklaver.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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.


-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql



view thread (8+ messages)  latest in thread

Message-ID: <1435648667132-5855844.post@n5.nabble.com>
Permalink:  ../1435648667132-5855844.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1435648667132-5855844.post@n5.nabble.com

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: gmbouwer@gmail.com
  Subject: Re: Disable Trigger for session only
  In-Reply-To: <1435648667132-5855844.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox