Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id F0FE69F9DAD for ; Fri, 27 Oct 2006 19:19:26 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 20392-09 for ; Fri, 27 Oct 2006 22:19:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from pat.laterooms.com (fon.laterooms.com [194.24.251.1]) by postgresql.org (Postfix) with ESMTP id 925C09F9358 for ; Fri, 27 Oct 2006 19:19:11 -0300 (ADT) Received: from pat.laterooms.com (localhost.localdomain [127.0.0.1]) by pat.laterooms.com (Postfix) with ESMTP id 1F312C3E0 for ; Fri, 27 Oct 2006 23:19:09 +0100 (BST) Received: from eddie.acentral.co.uk (80-192-144-33.cable.ubr04.pres.blueyonder.co.uk [80.192.144.33]) by pat.laterooms.com (Postfix) with ESMTP id E10E9C3DF for ; Fri, 27 Oct 2006 23:19:08 +0100 (BST) Received: from eddie.acentral.co.uk (eddie.acentral.co.uk [127.0.0.1]) by eddie.acentral.co.uk (Postfix) with ESMTP id EB64E75F6B for ; Fri, 27 Oct 2006 23:19:10 +0100 (BST) Received: from localhost (unknown [10.0.0.23]) by eddie.acentral.co.uk (Postfix) with SMTP id D9F6B75E24 for ; Fri, 27 Oct 2006 23:19:10 +0100 (BST) Date: Fri, 27 Oct 2006 23:19:20 +0100 From: Gavin Hamill To: pgsql-performance@postgresql.org Subject: Re: VACUUMs take twice as long across all nodes Message-Id: <20061027231920.b806d071.gdh@laterooms.com> In-Reply-To: <7564.1161972463@sss.pgh.pa.us> References: <20061026095827.9e85e1c0.gdh@laterooms.com> <20196.1161874041@sss.pgh.pa.us> <20061026160609.5e94e581.gdh@laterooms.com> <20061026191728.GD26892@nasby.net> <20061026213556.174bd7b5.gdh@laterooms.com> <20061026220937.GA6866@phlogiston.dyndns.org> <20061027102025.8183c5d9.gdh@laterooms.com> <7564.1161972463@sss.pgh.pa.us> X-Mailer: Sylpheed version 2.2.4 (GTK+ 2.8.20; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-AV-Checked: ClamAV using ClamSMTP X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.134 tagged_above=0 required=5 tests=FORGED_RCVD_HELO, SPF_PASS X-Spam-Level: X-Archive-Number: 200610/587 X-Sequence-Number: 21716 On Fri, 27 Oct 2006 14:07:43 -0400 Tom Lane wrote: > So the time is all in index vacuuming, eh? I think what's happening > is that the physical order of the index is degrading over time, and > so the vacuum scan takes longer due to more seeking. Can you afford > to do a REINDEX? If this theory is correct that should drive the > time back down. Tom, You wonderful, wonderful man. I tried a test reindex on "Allocation", and noticed a vacuum had turbo-charged... then reindexed the whole db, did a vacuum, and lo! The whole db had turbo-charged :) When I say 'turbo-charged', I mean it. The vacuum times have dropped to 20% of what we were seeing even before it 'got much slower a couple of days ago.' It sucks that the new reindex code is only in 8.2, but now that I know this is an issue in 8.1 I can plan for it. Thanks so much :) Cheers, Gavin.