pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <smarlowe@qwest.net>
To: Bill Chandler <billybobc1210@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: VACUUM ANALYZE and REINDEX
Date: Mon, 19 Jul 2004 14:06:53 -0600
Message-ID: <1090267613.709.3.camel@localhost.localdomain> (raw)
In-Reply-To: <20040719192501.55745.qmail@web51402.mail.yahoo.com>
References: <20040719192501.55745.qmail@web51402.mail.yahoo.com>

On Mon, 2004-07-19 at 13:25, Bill Chandler wrote:
> Hello,
> 
> I'm sorry if this too basic.  I searched the web but
> could not find an answer.
> 
> Q1: When you do a VACUUM ANALYZE does it update the
> statistics for existing indexes on the table?  Or do
> you have to do an explicit REINDEX command on the
> index (or possibly drop and recreate the index)?

analyze has no effect on indexes, it is performed on the tables
directly.  The stats are then used to decide when to use / not use an
index.  Reindexing is used to fix broken or bloated indexes, and is not
related to analyze.




view thread (2+ messages)

Message-ID: <1090267613.709.3.camel@localhost.localdomain>
Permalink:  ../1090267613.709.3.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1090267613.709.3.camel@localhost.localdomain

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: smarlowe@qwest.net, billybobc1210@yahoo.com
  Subject: Re: VACUUM ANALYZE and REINDEX
  In-Reply-To: <1090267613.709.3.camel@localhost.localdomain>
  References: <20040719192501.55745.qmail@web51402.mail.yahoo.com> <1090267613.709.3.camel@localhost.localdomain>

* 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