Re: Index on two columns not used

From: Markus Schaber <schabi(at)logix-tt(dot)com>
To: PostgreSQL Performance List <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Index on two columns not used
Date: 2006-10-23 15:17:06
Message-ID: 453CDCF2.6090208@logix-tt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi, Alvaro,

Alvaro Herrera wrote:

>> Additionally, in most UPDATE cases, the new row version will fit into
>> the same page as the old version. In this case, the index does not have
>> to be changed, which is an additional speed improvement.
> Actually, when the UPDATE puts a new row version in the same heap page,
> the index must be updated anyway.

AFAICS only, when the index covers (directly or via function) a column
that's actually changed.

Changing columns the index does not depend on should not need any write
access to that index.

Correct me if I'm wrong.

Thanks,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS

Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Worky Workerson 2006-10-23 15:40:57 Re: Best COPY Performance
Previous Message Luke Lonergan 2006-10-23 15:11:00 Re: Best COPY Performance