Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 01CF61FDBD2F for ; Sun, 4 Dec 2011 20:25:55 -0400 (AST) Received: from mail-qw0-f46.google.com ([209.85.216.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RXMNU-0000PH-RN for pgsql-bugs@postgresql.org; Mon, 05 Dec 2011 00:25:54 +0000 Received: by qadb40 with SMTP id b40so733427qad.19 for ; Sun, 04 Dec 2011 16:25:38 -0800 (PST) Received: by 10.224.181.141 with SMTP id by13mr6166295qab.1.1323044738503; Sun, 04 Dec 2011 16:25:38 -0800 (PST) Received: from ayaki.localdomain (203-173-33-169.dyn.iinet.net.au. [203.173.33.169]) by mx.google.com with ESMTPS id du5sm21945611qab.14.2011.12.04.16.25.35 (version=SSLv3 cipher=OTHER); Sun, 04 Dec 2011 16:25:37 -0800 (PST) Message-ID: <4EDC0F7B.7020602@ringerc.id.au> Date: Mon, 05 Dec 2011 08:25:31 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110930 Thunderbird/7.0.1 MIME-Version: 1.0 To: Andreas Karlsson CC: dmigowski@ikoffice.de, pgsql-bugs@postgresql.org Subject: Re: BUG #6325: Useless Index updates References: <4EDB7D91.1070005@ringerc.id.au> <4EDC0D76.4060402@proxel.se> In-Reply-To: <4EDC0D76.4060402@proxel.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201112/35 X-Sequence-Number: 31846 On 12/05/2011 08:16 AM, Andreas Karlsson wrote: > On 2011-12-04 15:02, Craig Ringer wrote: >> - The index isn't always updated. Check out HOT (introduced in 8.4, the >> release after your current one) which reduces unnecessary index >> updates in cases where the old and new row can fit on the same >> heap page. > > Minor correction: HOT was introduced in 8.3. > > http://www.postgresql.org/docs/9.1/static/release-8-3.html Whoops, thanks. In that case the OP is already getting the benefit of reduced index updates as much as is possible with PostgreSQL's MVCC design. -- Craig Ringer