Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 85F8E9FA6B5 for ; Wed, 17 Jan 2007 12:49:04 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 20263-08 for ; Wed, 17 Jan 2007 12:48:35 -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 1E5249FB28D for ; Wed, 17 Jan 2007 12:48:17 -0400 (AST) Received: from einstein.muc.ecircle.de (einstein.muc.ecircle.de [192.168.1.7]) by mail.ecircle.de (READY) with ESMTP id 02FC511C03E; Wed, 17 Jan 2007 17:48:16 +0100 (CET) Received: from [192.168.1.91] ([192.168.1.91]) by einstein.muc.ecircle.de with Microsoft SMTPSVC(6.0.3790.1830); Wed, 17 Jan 2007 17:48:15 +0100 Subject: Re: Index bloat of 4x From: Csaba Nagy To: Greg Sabino Mullane Cc: Postgres general mailing list , bruce@momjian.us In-Reply-To: <19dcd19103d2e8b6656dac44879e2fcb@biglumber.com> References: <19dcd19103d2e8b6656dac44879e2fcb@biglumber.com> Content-Type: text/plain Message-Id: <1169052495.22307.283.camel@coppola.muc.ecircle.de> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Wed, 17 Jan 2007 17:48:15 +0100 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 Jan 2007 16:48:15.0908 (UTC) FILETIME=[48AAFE40:01C73A57] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/907 X-Sequence-Number: 107447 [snip] > Come to think of it, an auto-reindex option might be nice in core someday. > TODO item? Marry it with autovacuum + online index build, and it will be cool ;-) BTW, having a privileged background thread doing the reindex could be a solution to most of the objections regarding online reindex, as the thread would be privileged enough already to be able to back out if something fails (part of the objections), and it could stay around long enough to only lock tentatively in a loop in order to avoid deadlocks (another part of the objections). If it would be also marked the same as the vacuum threads not to block other vacuums, then it would also not be a problem that it runs 2 days... Cheers, Csaba.