From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
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 17:10:47 -0400
Message-ID: <10492.1497906647@sss.pgh.pa.us> (raw)
In-Reply-To: <20170619205917.vnudxxdyp377e2ji@alvherre.pgsql>
References: <20170619205917.vnudxxdyp377e2ji@alvherre.pgsql>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Alvaro Herrera <alvherre@2ndquadrant.com> 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
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: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, 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: <10492.1497906647@sss.pgh.pa.us>
References: <20170619205917.vnudxxdyp377e2ji@alvherre.pgsql> <10492.1497906647@sss.pgh.pa.us>
* 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