Re: dropping and recreating indexes vs. reindexing

Поиск
Список
Период
Сортировка
От scott.marlowe
Тема Re: dropping and recreating indexes vs. reindexing
Дата
Msg-id Pine.LNX.4.33.0211211032590.23081-100000@css120.ihs.com
обсуждение исходный текст
Ответ на dropping and recreating indexes vs. reindexing  ("Henrik Steffen" <steffen@city-map.de>)
Список pgsql-general
On Thu, 21 Nov 2002, Henrik Steffen wrote:

>
> hello all,
>
> I used to drop and recreate all user indexes once every night.
> I noticed that this led to an increase of performance...
>
> Today, using postgres-7.2.1, I wonder if this still has
> benefits, or if I should better use "reindex" or if I
> don't have to bother about reindexing at all ?

The problems that cause index growth are still present in pgsql, so if you
are doing a lot of updates / deletes, then yes, reindexing may help.

You should check the size of your indexes on disk to see if they are
larger than they should be.  A quick check is to just to check on the
space your datbase is using, then reindex it and check the space used
again.  If the size drops noticeable, then you probably do have some
problems with index growth.


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: stability of pg library usage
Следующее
От: "Mihai Gheorghiu"
Дата:
Сообщение: Migrating data from MSAccess