Re: Maintaining cluster order on insert

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Maintaining cluster order on insert
Дата
Msg-id 28914.1155154622@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Maintaining cluster order on insert  (Heikki Linnakangas <heikki@enterprisedb.com>)
Ответы Re: Maintaining cluster order on insert  ("Jonah H. Harris" <jonah.harris@gmail.com>)
Список pgsql-patches
Heikki Linnakangas <heikki@enterprisedb.com> writes:
> While thinking about index-organized-tables and similar ideas, it
> occurred to me that there's some low-hanging-fruit: maintaining cluster
> order on inserts by trying to place new heap tuples close to other
> similar tuples.

Doesn't this happen for free if there's enough space?  UPDATE tries to
place the new tuple on the same page it's already on.  In practice
people are only likely to cluster by primary keys (or other things that
seldom change) so I don't particularly agree with inventing a large wart
to support "optimally" placing things somewhere else...

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] BUG #2569: statement_timeout bug on Windows
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [BUGS] BUG #2569: statement_timeout bug on Windows