Re: VACUUM not doing its job? - Mailing list pgsql-sql

From Sander Steffann
Subject Re: VACUUM not doing its job?
Date
Msg-id 001201c23b41$799a8d00$64c8a8c0@balefire10ww
Whole thread Raw
In response to VACUUM not doing its job?  ("Kristian Eide" <kreide@online.no>)
List 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




pgsql-sql by date:

Previous
From: Cédric Dufour
Date:
Subject: Re: Random resultset retrieving -> performance bottleneck
Next
From: Jochem van Dieten
Date:
Subject: Re: VACUUM not doing its job?