Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dN3lk-0004Lg-Hs for pgsql-bugs@arkaria.postgresql.org; Mon, 19 Jun 2017 20:59:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dN3lj-0002cd-SQ for pgsql-bugs@arkaria.postgresql.org; Mon, 19 Jun 2017 20:59:31 +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 1dN3li-0002bm-St for pgsql-bugs@postgresql.org; Mon, 19 Jun 2017 20:59:31 +0000 Received: from mail-qk0-x22f.google.com ([2607:f8b0:400d:c09::22f]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dN3lg-0003gO-9Z for pgsql-bugs@postgresql.org; Mon, 19 Jun 2017 20:59:29 +0000 Received: by mail-qk0-x22f.google.com with SMTP id d14so43396069qkb.1 for ; Mon, 19 Jun 2017 13:59:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=9IPOg8kfJBCBvCk1EgwTYra4DAbnaIenwSlm91FNyto=; b=wzO9R6x+DNJDvRYkUKWscP3OF61y2+fyVVCmmiD12oQQFfH8sz+NbNtsvyg37LEFEj 9jJgripgob5HrmyPn3/y0EfUzSC0or1i2qiKIhmWmhqS6Kn+PhQRP8WJNukGxyTtlSwh tgba3n0JerL4MKTUTptbFYKLQz9sCBWvUrrhlLghIMSj+jPYWhQzJ4WlCCfyCfwk1MwT 1d0ApgRmLAm7OJeTXj/umDqnCNWu4Acq7TYugWORuRgQpsl4ZcRVbi8eUNckqQOdNwQk o/VgQRDAr2R/q77hUYw9be/MeO/oe1Rf0oB00flHkzdZu5NQMUP5zTGcSUIKOo6lFh2R Z2lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=9IPOg8kfJBCBvCk1EgwTYra4DAbnaIenwSlm91FNyto=; b=Gg6jENtb1Z6E6qruSiwkkGu0pgkvpCgL8TfwBafYlrtpPX3CJXLznHu7xdKH/PywI7 V6KAwNz0UW6fF1VOCTOmO8XBZNEPQI2ZfjtEdgAngNYbqqmtQ2MifEgspWrIykMz+w1n LIZ4fRd2SmZTfmbr2nba0Bnp0ONAlA42zqrMYO1yBsinADE9AFrK87LYq/Cm51jgIpZq jX/Dbh69lrtd6lzUKzr55CvC6IY6niy6Gli7oP6W+rHOPYcT31hKiHfbsKifmaA/wxNx +bSDK6fPWClim4YMgSgCUIwaQWdsKAoeC59hAAOh8gORXPouO6LcUGcJV44MHP13YDXn 0soA== X-Gm-Message-State: AKS2vOwEkmsqphK/zlPBHQpgTim6CvdoSVcfxCBkgtHx4UdmOz2OX/es ikEyS+8/jvbNBsOhdq4= X-Received: by 10.55.122.133 with SMTP id v127mr30708978qkc.129.1497905967186; Mon, 19 Jun 2017 13:59:27 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.217.209.130]) by smtp.gmail.com with ESMTPSA id o3sm7692335qtb.57.2017.06.19.13.59.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Jun 2017 13:59:26 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 547FC6AC; Mon, 19 Jun 2017 16:59:17 -0400 (-04) Date: Mon, 19 Jun 2017 16:59:17 -0400 From: Alvaro Herrera To: Tom Lane 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 Message-ID: <20170619205917.vnudxxdyp377e2ji@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9071.1497904647@sss.pgh.pa.us> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) 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 Tom Lane wrote: > As I mentioned upthread, it'd certainly be possible for the trigger > to iterate through the fields in a datatype-aware fashion and undo > compression or out-of-lineing before the comparison. But that would > eat a lot more cycles than the current implementation, and it seems > dubious that it's worth it. 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. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs