Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id BF70C9FB1E4 for ; Fri, 19 Jan 2007 05:11:23 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 77241-06 for ; Fri, 19 Jan 2007 05:11:11 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.ecircle.de (mail.ecircle.de [195.140.186.200]) by postgresql.org (Postfix) with ESMTP id 83F959FB1D2 for ; Fri, 19 Jan 2007 05:11:20 -0400 (AST) Received: from einstein.muc.ecircle.de (einstein.muc.ecircle.de [192.168.1.7]) by mail.ecircle.de (READY) with ESMTP id 311FF11C041; Fri, 19 Jan 2007 10:11:18 +0100 (CET) Received: from [192.168.1.91] ([192.168.1.91]) by einstein.muc.ecircle.de with Microsoft SMTPSVC(6.0.3790.1830); Fri, 19 Jan 2007 10:11:17 +0100 Subject: Re: Index bloat of 4x From: Csaba Nagy To: "Ed L." Cc: Postgres general mailing list , Bill Moran , Tom Lane , Alvaro Herrera In-Reply-To: <200701181842.00696.pgsql@bluepolka.net> References: <20070117093223.bcdb302e.wmoran@collaborativefusion.com> <19674.1169104105@sss.pgh.pa.us> <20070118080715.479b9315.wmoran@collaborativefusion.com> <200701181842.00696.pgsql@bluepolka.net> Content-Type: text/plain Message-Id: <1169197877.11526.10.camel@coppola.muc.ecircle.de> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Fri, 19 Jan 2007 10:11:17 +0100 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 19 Jan 2007 09:11:17.0563 (UTC) FILETIME=[C6E310B0:01C73BA9] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/1058 X-Sequence-Number: 107598 [snip] > I afraid I don't see how any of the answers I saw discussed fit a > 24x7 operation. Reindex, drop index, vacuum full, ... they all > block production queries of one sort or another for significant > periods of time (minutes) on large (multi/tens of GB) tables, > and thus are infeasible for true 24x7 operations.[snip] This is not completely true, as of 8.2 there is an online index build, and if that could be used in a background thread to rebuild the index and replace the bloated one once it's finished, that would be a non-blocking operation which could be done in 24x7 situations. There are some issues with using the online index build for replacing an existing index, but if those could be solved it would be a viable solution I think... Cheers, Csaba.