X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.192]) by svr1.postgresql.org (Postfix) with ESMTP id C1AD3CCA38 for ; Thu, 17 Jul 2003 14:45:10 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr4.postgresql.org [64.117.224.192]) (amavisd-new, port 10024) with ESMTP id 55134-05 for ; Thu, 17 Jul 2003 14:45:34 +0000 (GMT) Received: from mta4.adelphia.net (mta4.adelphia.net [64.8.50.184]) by svr1.postgresql.org (Postfix) with ESMTP id 1D36CCCA36 for ; Thu, 17 Jul 2003 11:45:09 -0300 (ADT) Received: from potentialtech.com ([24.53.179.151]) by mta4.adelphia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20030717144535.DZEQ28181.mta4.adelphia.net@potentialtech.com> for ; Thu, 17 Jul 2003 10:45:35 -0400 Message-ID: <3F16B68F.7060207@potentialtech.com> Date: Thu, 17 Jul 2003 10:45:35 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Relation of indices to ANALYZE Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/255 X-Sequence-Number: 2548 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