Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id DAB911337BD9 for ; Sat, 30 Apr 2011 05:08:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 83922-01-10 for ; Sat, 30 Apr 2011 08:08:20 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mail.postgresql.org (Postfix) with ESMTP id 0E82E1337BFD for ; Sat, 30 Apr 2011 05:05:48 -0300 (ADT) Received: from [192.168.1.6] (mail.highperformancepostgresql.com [71.179.240.8]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MT6qE-1QPOqD0zMU-00RgaO; Sat, 30 Apr 2011 10:05:47 +0200 Message-ID: <4DBBC331.7080200@2ndQuadrant.com> Date: Sat, 30 Apr 2011 04:07:13 -0400 From: Greg Smith User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110307 Icedove/3.0.11 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: REINDEX takes half a day (and still not complete!) References: <34CE0668-2A83-4BE4-B191-86871C2F8334@gmail.com> In-Reply-To: <34CE0668-2A83-4BE4-B191-86871C2F8334@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:uDEGP9vx+J7/AGsFqJByGLb6znQmWmukq1G49m583vQ gmXhqYs9vqVoFJ38pPEzZ2Omx1ttok5B3xMhRsplHogG0a/YGj VDGrg+f7y7PuK1bhO5LQ28di2n93MV3F+A+yJO7fQiwSEUYKTv yI1Rew80DTxc3J5EJHAVTUFg5uZ9gjSnerJn9gfudBM3iAovqr 1KE7BSMgr8e7LUGbeXuKWtbByt/aMMI7/SjopehqDg= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201104/432 X-Sequence-Number: 43494 On 04/23/2011 03:44 PM, Robert Haas wrote: > On Apr 17, 2011, at 11:30 AM, Phoenix Kiula wrote: > >> Postgres is 8.2.9. >> >> > An upgrade would probably help you a lot, and as others have said it sounds like your hardware is failing, so you probably want to deal with that first. > > I am a bit surprised, however, that no one seems to have mentioned using CLUSTER rather than VACUUM or REINDEX. Sometimes that's worth a try... > Don't know if it was for this reason or not for not mentioning it by others, but CLUSTER isn't so great in 8.2. The whole "not MVCC-safe" bit does not inspire confidence on a production server. -- Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us