Re: clustering without locking

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: clustering without locking
Дата
Msg-id 3f0b79eb0805020011k47757edcib7c64b6db6e73b65@mail.gmail.com
обсуждение исходный текст
Ответ на clustering without locking  (fschmidt <fschmidt@gmail.com>)
Список pgsql-general
On Fri, May 2, 2008 at 9:12 AM, fschmidt <fschmidt@gmail.com> wrote:
>
>  An implementation of clustering without locking would start by comparing the
>  index to the table from the beginning to find the first mismatch.  Rows
>  before the mismatch are fine, and can be left alone.  From here on, go
>  through the index and rewrite each row in order.  This will put the rows at
>  the end of the table in cluster order.  When done, vacuum the table.  This
>  will result in a clustered table without any locking needed.  Those few
>  records that were updated while clustering was happening will be out of
>  order, but that should only be a few.

In your proposal, a large amount of dead tuple can be generated in both
table and index. This is a serious problem that spoils the effect of clustering.

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: clustering without locking
Следующее
От: Sanjaya Kumar Patel
Дата:
Сообщение: High resolution PostgreSQL Logo