vacuum, analyze and reindex

Поиск
Список
Период
Сортировка
От Javier Somoza
Тема vacuum, analyze and reindex
Дата
Msg-id 1141128665.1555.33.camel@pndsoft
обсуждение исходный текст
Список pgsql-performance


            Hi all

            I've a question about vacuuming, ...

            Vacuum: cleans out obsolete and deleted registers...
            Analyze:  update statistics for the planner
            Reindex:  rebuild indexes

            I think the correct order to perform the database maintenance for performance is:

            1 - Vacuum
            2 - Reindex
            3 - Analyze

            So the planner is updated with the updated indexes.


            The autovacuum daemon does vacuum and analyze. Not reindex.
            So, no way to perform it in that order.

            What do you think?
            How often do you reindex your tables?

            Thx all

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

Предыдущее
От: Javier Somoza
Дата:
Сообщение: Different disks for xlogs and data
Следующее
От: Christopher Browne
Дата:
Сообщение: Re: vacuum, analyze and reindex