Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMzQL-0003P7-Ph for pgsql-bugs@arkaria.postgresql.org; Mon, 19 Jun 2017 16:21:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dMzQL-0001Bw-CG for pgsql-bugs@arkaria.postgresql.org; Mon, 19 Jun 2017 16:21:09 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dMzPc-0007Cc-VC; Mon, 19 Jun 2017 16:20:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dMzPa-0006bR-Oz; Mon, 19 Jun 2017 16:20:23 +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 v5JGKLxL001743; Mon, 19 Jun 2017 12:20:21 -0400 From: Tom Lane To: Robert Haas cc: Dilip Kumar , Artus de benque , Postgres-Bugs , pgsql-hackers Subject: Re: [HACKERS] Postgresql bug report - unexpected behavior of suppress_redundant_updates_trigger In-reply-to: References: <644.1497887945@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Mon, 19 Jun 2017 12:05:31 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1741.1497889221.1@sss.pgh.pa.us> Date: Mon, 19 Jun 2017 12:20:21 -0400 Message-ID: <1742.1497889221@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 Robert Haas writes: > On Mon, Jun 19, 2017 at 11:59 AM, Tom Lane wrote: >> I don't think it's a bug, I think it's an intentional design tradeoff. >> To suppress an update in this case, the trigger would have to grovel >> through the individual fields and detoast them before comparing. >> That would add a lot of cycles, and only seldom add successes. >> >> Possibly we should adjust the documentation so that it doesn't imply >> that this trigger guarantees to suppress every no-op update. > That doesn't sound like a very plausible argument to me. I don't > think that a proposal to add a function named > sometimes_suppress_redundant_updates_trigger() would've attracted many > votes. You'd be wrong. The entire point of this trigger is to save cycles, so having it eat a lot of cycles only to fail is not an improvement. 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