From: Javier Somoza <jsomoza@pandasoftware.es>
To: pgsql-performance@postgresql.org
Subject: vacuum, analyze and reindex
Date: Tue, 28 Feb 2006 13:11:05 +0100
Message-ID: <1141128665.1555.33.camel@pndsoft> (raw)
Hi all
I've a question about vacuuming, ...
Vacuum: cleans out obsolete and deleted registers...
Analyze: update statistics for the planner
Reindex: rebuild indexes
I think the correct order to perform the database
maintenance for performance is:
1 - Vacuum
2 - Reindex
3 - Analyze
So the planner is updated with the updated indexes.
The autovacuum daemon does vacuum and analyze. Not reindex.
So, no way to perform it in that order.
What do you think?
How often do you reindex your tables?
Thx all
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: jsomoza@pandasoftware.es
Subject: Re: vacuum, analyze and reindex
In-Reply-To: <1141128665.1555.33.camel@pndsoft>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox