Re: dropping and recreating indexes vs. reindexing - Mailing list pgsql-general

From scott.marlowe
Subject Re: dropping and recreating indexes vs. reindexing
Date
Msg-id Pine.LNX.4.33.0211211032590.23081-100000@css120.ihs.com
Whole thread Raw
In response to dropping and recreating indexes vs. reindexing  ("Henrik Steffen" <steffen@city-map.de>)
List 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 by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: stability of pg library usage
Next
From: "Mihai Gheorghiu"
Date:
Subject: Migrating data from MSAccess