pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bill Moran <wmoran@potentialtech.com>
To: pgsql-performance@postgresql.org
Subject: Relation of indices to ANALYZE
Date: Thu, 17 Jul 2003 10:45:35 -0400
Message-ID: <3F16B68F.7060207@potentialtech.com> (raw)

Hello all,

I'm putting together a database that has me wondering about the interaction of ANALYZE
with indices.  I guess the basic question is: are indices affected by the results of
ANALYZE.

The particular application I've got is doing a batch insert of lots of records.  For
performance, I'm dropping the indexes on the table, doing the inserts, then recreating
the indexes a then doing a VACUUM ANALYZE.  Specifically, I'm wondering if I should do
the ANALYZE before or after I recreate the indexes, or whether it matters.

Any feedbackis welcome.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com




view thread (4+ messages)  latest in thread

Message-ID: <3F16B68F.7060207@potentialtech.com>
Permalink:  ../3F16B68F.7060207@potentialtech.com/
Also on:    postgresql.org/message-id/3F16B68F.7060207@potentialtech.com

 · 

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-performance@postgresql.org
  Cc: wmoran@potentialtech.com
  Subject: Re: Relation of indices to ANALYZE
  In-Reply-To: <3F16B68F.7060207@potentialtech.com>
  References: <3F16B68F.7060207@potentialtech.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