Importance of re-index

From: John Sidney-Woollett <johnsw(at)wardbrook(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Importance of re-index
Date: 2006-08-03 22:44:39
Message-ID: 44D27C57.6000206@wardbrook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In addition to making sure databases are vacuumed regularly, it is worth
running REINDEX on tables that see a lot of updates (or insert/deletes).

Running REINDEX on a regular basis will keep the indexes compacted and
can noticeably improve the database performance.

The other benefit is that the disk space taken by your database can be
significantly reduced.

This is barely mentioned in the 7.4 docs, and alluded to in the 8.1 docs.

FWIW, in my experience it is DEFINITELY worth reindexing regularly.

John

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2006-08-03 22:46:44 Re: Importance of re-index
Previous Message John Sidney-Woollett 2006-08-03 22:34:07 Re: Best Procedural Language?