pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: markus@m-bass.com
Cc: pgsql-performance@postgresql.org
Subject: Re: Reindex - Is this necessary after a vacuum?
Date: Tue, 25 Oct 2005 10:27:08 -0400
Message-ID: <13827.1130250428@sss.pgh.pa.us> (raw)
In-Reply-To: <20051025135607.39805.qmail@web31615.mail.mud.yahoo.com>
References: <20051025135607.39805.qmail@web31615.mail.mud.yahoo.com>

Markus Benne <thing@m-bass.com> writes:
> Our table in question is vacuumed every 4 minutes, and
> we are reindexing after each one.

That's pretty silly.  You might need a reindex once in awhile, but
not every time you vacuum.

The draft 8.1 docs contain some discussion of possible reasons for
periodic reindexing:
http://developer.postgresql.org/docs/postgres/routine-reindex.html
but none of these reasons justify once-per-vacuum reindexes.

			regards, tom lane



view thread (3+ messages)

Message-ID: <13827.1130250428@sss.pgh.pa.us>
Permalink:  ../13827.1130250428@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13827.1130250428@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, markus@m-bass.com
  Subject: Re: Reindex - Is this necessary after a vacuum?
  In-Reply-To: <13827.1130250428@sss.pgh.pa.us>

* 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