From: Richard Huxton <dev@archonet.com>
To: markus@m-bass.com
Cc: pgsql-performance@postgresql.org
Subject: Re: Reindex - Is this necessary after a vacuum?
Date: Tue, 25 Oct 2005 15:16:27 +0100
Message-ID: <435E3E3B.1000805@archonet.com> (raw)
In-Reply-To: <20051025135607.39805.qmail@web31615.mail.mud.yahoo.com>
References: <20051025135607.39805.qmail@web31615.mail.mud.yahoo.com>
Markus Benne wrote:
> We are reindexing frequently, and I'm wondering if
> this is really necessary, given that it appears to
> take an exclusive lock on the table.
>
> Our table in question is vacuumed every 4 minutes, and
> we are reindexing after each one.
>
> I'm not a fan of locking this table that frequently,
> even if it is only for 5 - 10 seconds depending on
> load.
>
> The vacuum is a standard vacuum. Nightly we do a
> vacuum analyze.
At most I'd do a nightly reindex. And in fact, I'd probably drop the
index, full vacuum, recreate index.
But you only need to reindex at all if you have a specific problem with
the index bloating. Are you seeing this?
--
Richard Huxton
Archonet Ltd
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: dev@archonet.com, markus@m-bass.com
Subject: Re: Reindex - Is this necessary after a vacuum?
In-Reply-To: <435E3E3B.1000805@archonet.com>
* 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