Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9pnq-0007Uk-Ge for pgsql-sql@arkaria.postgresql.org; Tue, 30 Jun 2015 07:17:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Z9pnp-0003Mv-SP for pgsql-sql@arkaria.postgresql.org; Tue, 30 Jun 2015 07:17:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z9pnp-0003MX-6p for pgsql-sql@postgresql.org; Tue, 30 Jun 2015 07:17:57 +0000 Received: from mbob.nabble.com ([162.253.133.15]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Z9pnh-00056f-Qi for pgsql-sql@postgresql.org; Tue, 30 Jun 2015 07:17:56 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id A427B100B950 for ; Tue, 30 Jun 2015 00:18:36 -0700 (PDT) Date: Tue, 30 Jun 2015 00:17:47 -0700 (MST) From: gmb To: pgsql-sql@postgresql.org Message-ID: <1435648667132-5855844.post@n5.nabble.com> 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> Subject: Re: Disable Trigger for session only MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.3 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org 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