Re: dropping and recreating indexes vs. reindexing

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Henrik Steffen <steffen(at)city-map(dot)de>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: dropping and recreating indexes vs. reindexing
Date: 2002-11-21 17:34:54
Message-ID: Pine.LNX.4.33.0211211032590.23081-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mihai Gheorghiu 2002-11-21 17:41:16 Migrating data from MSAccess
Previous Message Bruce Momjian 2002-11-21 17:17:03 Re: stability of pg library usage