Re: BUG #6325: Useless Index updates

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: dmigowski(at)ikoffice(dot)de
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6325: Useless Index updates
Date: 2011-12-04 20:07:21
Message-ID: 20111204200720.GA18582@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-general

On Sun, Dec 04, 2011 at 12:54:25PM +0000, dmigowski(at)ikoffice(dot)de wrote:
> It seems that an update to a row in a table always removes the element from
> an index and adds it again. Wouldn't it be faster to check for equality of
> the index parameters in the OLD and NEW record first?

http://www.depesz.com/index.php/2008/11/05/waiting-for-84-suppress_redundant_updates_trigger/

Best regards,

depesz

--
The best thing about modern society is how easy it is to avoid contact with it.
http://depesz.com/

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Andreas Karlsson 2011-12-05 00:16:54 Re: BUG #6325: Useless Index updates
Previous Message Craig Ringer 2011-12-04 14:02:57 Re: BUG #6325: Useless Index updates

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2011-12-04 21:23:52 Re: Shared memory usage in PostgreSQL 9.1
Previous Message Christoph Zwerschke 2011-12-04 15:20:18 Re: Shared memory usage in PostgreSQL 9.1