Re: remove flatfiles.c

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: remove flatfiles.c
Дата
Msg-id 4A9E6BB9020000250002A8D6@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: remove flatfiles.c  (Greg Stark <gsstark@mit.edu>)
Ответы Re: remove flatfiles.c  (Greg Stark <gsstark@mit.edu>)
Список pgsql-hackers
Greg Stark <gsstark@mit.edu> wrote:
> I don't think we want to cluster on the primary key. I think we just
> want to rewrite the table keeping the same physical ordering.
Well if that's what you want to do, couldn't you do something like?:
Lock the table.
Prop all indexes
Pass the heap with two pointers, one to the first available empty
space and one to the first non-dead row past that, and move inside the
existing file.
Rebuild the indexes.
Release the lock.
-Kevin


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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: remove flatfiles.c
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: remove flatfiles.c