Re: VACUUM not doing its job?

From: "Sander Steffann" <sander(at)steffann(dot)nl>
To: "Kristian Eide" <kreide(at)online(dot)no>, "Ken Corey" <ken(at)kencorey(dot)com>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: VACUUM not doing its job?
Date: 2002-08-03 22:59:51
Message-ID: 001201c23b41$799a8d00$64c8a8c0@balefire10ww
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> This is not good as the database is in use 24/7, and without the indexes
> everything comes to a screeching halt. This means I probably will have to
> stop the programs using the database for the time it takes to re-create
the
> indexes; this is better than having to dump/restore everything however :)

You can try using REINDEX instead of dropping and creating the index. It
takes an exclusive lock on the table (instead of a write-lock during CREATE
INDEX) so your application will have to wait during reindex, but maybe it is
faster... When you use the reindexdb script in the contrib dir you can even
put it in a crontab.

Sander

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Joe Conway 2002-08-03 23:02:05 Re: VACUUM not doing its job?
Previous Message Kristian Eide 2002-08-03 22:40:57 Re: VACUUM not doing its job?