Re: Index on two columns not used

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Index on two columns not used
Дата
Msg-id 20061023135011.GG7961@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Index on two columns not used  (Markus Schaber <schabi@logix-tt.com>)
Ответы Re: Index on two columns not used  (Markus Schaber <schabi@logix-tt.com>)
Список pgsql-performance
Markus Schaber 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.  All the rest of what you said is
correct.

There is another reason not to put visibility info in the index, which
is that it would be extremely complex to update all indexes to contain
the right visibility (and maybe impossible without risking deadlocks).
Updating only the heap is very simple.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

В списке pgsql-performance по дате отправления:

Предыдущее
От: Markus Schaber
Дата:
Сообщение: Re: Index on two columns not used
Следующее
От: "Luke Lonergan"
Дата:
Сообщение: Re: Best COPY Performance