Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dN3wk-0004zv-W4 for pgsql-bugs@arkaria.postgresql.org; Mon, 19 Jun 2017 21:10:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dN3wk-0004Ln-If for pgsql-bugs@arkaria.postgresql.org; Mon, 19 Jun 2017 21:10:54 +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_2) (envelope-from ) id 1dN3wk-0004LE-1q; Mon, 19 Jun 2017 21:10:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dN3wh-00056T-3U; Mon, 19 Jun 2017 21:10:53 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v5JLAlRQ010493; Mon, 19 Jun 2017 17:10:47 -0400 From: Tom Lane To: Alvaro Herrera cc: J Chapman Flack , Dilip Kumar , Artus de benque , pgsql-bugs@postgresql.org, pgsql-hackers Subject: Re: [HACKERS] Re: Postgresql bug report - unexpected behavior of suppress_redundant_updates_trigger In-reply-to: <20170619205917.vnudxxdyp377e2ji@alvherre.pgsql> References: <20170619205917.vnudxxdyp377e2ji@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Mon, 19 Jun 2017 16:59:17 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10491.1497906647.1@sss.pgh.pa.us> Date: Mon, 19 Jun 2017 17:10:47 -0400 Message-ID: <10492.1497906647@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Alvaro Herrera writes: > Tom Lane wrote: >> ... If the trigger is succeeding (ie, >> detecting a no-op update) often enough that it would be worth that, >> you've really got an application-stupidity problem to fix. > ISTM the whole point of suppress_redundant_updates_trigger is to cope > with application stupidity. I think it's a suitable band-aid for limited amounts of stupidity. But it eliminates only a small fraction of the total overhead involved in a useless update command. So I remain of the opinion that if that's happening a lot, you're better off fixing the problem somewhere upstream. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs