pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: J Chapman Flack <jflack@math.purdue.edu>
Cc: Dilip Kumar <dilipbalaut@gmail.com>
Cc: Artus de benque <artusdebenque@gmail.com>
Cc: pgsql-bugs@postgresql.org, pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: [HACKERS] Re: Postgresql bug report - unexpected behavior of suppress_redundant_updates_trigger
Date: Mon, 19 Jun 2017 16:59:17 -0400
Message-ID: <20170619205917.vnudxxdyp377e2ji@alvherre.pgsql> (raw)
In-Reply-To: <9071.1497904647@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (13+ messages)  latest in thread

Message-ID: <20170619205917.vnudxxdyp377e2ji@alvherre.pgsql>
Permalink:  ../20170619205917.vnudxxdyp377e2ji@alvherre.pgsql/
Also on:    postgresql.org/message-id/20170619205917.vnudxxdyp377e2ji@alvherre.pgsql

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: alvherre@2ndquadrant.com, tgl@sss.pgh.pa.us, jflack@math.purdue.edu, dilipbalaut@gmail.com, artusdebenque@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [HACKERS] Re: Postgresql bug report - unexpected behavior of suppress_redundant_updates_trigger
  In-Reply-To: <20170619205917.vnudxxdyp377e2ji@alvherre.pgsql>
  References: <9071.1497904647@sss.pgh.pa.us> <20170619205917.vnudxxdyp377e2ji@alvherre.pgsql>

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

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