Re: DB is slow until DB is reloaded

Поиск
Список
Период
Сортировка
От Richard Neill
Тема Re: DB is slow until DB is reloaded
Дата
Msg-id 4B4251F1.9060700@cam.ac.uk
обсуждение исходный текст
Ответ на Re: DB is slow until DB is reloaded  (Madison Kelly <linux@alteeve.com>)
Список pgsql-performance
> Yup, I even tried manually running 'VACUUM FULL' and it didn't help. As
> for upgrading;

VACUUM FULL is usually considered a bad idea. What you probably want to
do instead is CLUSTER, followed by ANALYZE.

Basically, VACUUM makes the indexes smaller (but doesn't reclaim much
space from the tables themselves). VACUUM FULL reclaims space from the
tables, but bloats the indexes.

> a) I am trying to find a way around the dump/reload. I am doing it as a
> "last resort" only.
> b) I want to keep the version in CentOS' repo.
>

Postgres is pretty easy to build from source. It's nicely
self-contained, and won't bite you with dependency hell. So don't be too
wary of compiling it.

Richard

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

Предыдущее
От: Madison Kelly
Дата:
Сообщение: Re: DB is slow until DB is reloaded
Следующее
От: Gary Doades
Дата:
Сообщение: Re: DB is slow until DB is reloaded