Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 9FE68632FB4 for ; Wed, 31 Mar 2010 18:03:08 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 24111-04 for ; Wed, 31 Mar 2010 21:02:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id F1E52632C7A for ; Wed, 31 Mar 2010 18:02:57 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Wed, 31 Mar 2010 16:02:56 -0500 Message-Id: <4BB3722F02000025000302BF@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Wed, 31 Mar 2010 16:02:55 -0500 From: "Kevin Grittner" To: "raghavendra t" , Subject: Re: How to fast the REINDEX References: In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.11 tagged_above=-10 required=5 tests=BAYES_05=-1.11 X-Spam-Level: X-Archive-Number: 201003/416 X-Sequence-Number: 38241 raghavendra t wrote: > I have a table with 40GB size, it has few indexes on it. What does the table look like? What indexes are there? > When i try to REINDEX on the table, Why are you doing that? > its take a long time. How long? > I tried increasing the maintenance_work_mem, but still i havnt > find a satisfying result. What run time are you expecting? > Questions > ======= > 1. What are the parameters will effect, when issuing the REINDEX > command > 2. Best possible way to increase the spead of the REINDEX It's hard to answer that without more information, like PostgreSQL version and configuration, for starters. See: http://wiki.postgresql.org/wiki/SlowQueryQuestions My best guess is that you can make them instantaneous by not running them. A good VACUUM policy should make such runs unnecessary in most cases -- at least on recent PostgreSQL versions. -Kevin