Re: DB is slow until DB is reloaded

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: DB is slow until DB is reloaded
Дата
Msg-id 4B43E47F.5010305@postnewspapers.com.au
обсуждение исходный текст
Ответ на Re: DB is slow until DB is reloaded  (Scott Carey <scott@richrelevance.com>)
Список pgsql-performance
Scott Carey wrote:
> CLUSTER also does *nothing at all* to a table unless you have chosen an index to CLUSTER on.  Its not as simple as
switchingfrom VACUUM or VACUUM FULL to CLUSTER. 
>
> Does CLUSTER also REINDEX? I seem to recall reducing the size of my indexes by REINDEXing after a CLUSTER, but it was
awhile ago and I could have been mistaken. 

AFAIK CLUSTER builds a new copy of the table, and new indexes for it,
then swaps them into the old table and index's place.

--
Craig Ringer

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

Предыдущее
От: Scott Carey
Дата:
Сообщение: Re: DB is slow until DB is reloaded
Следующее
От: Robert Haas
Дата:
Сообщение: Re: query looping?