Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id F40219FC02B for ; Wed, 20 Jun 2007 15:03:35 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 49848-02 for ; Wed, 20 Jun 2007 15:03:33 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from silene.metacarta.com (silene.metacarta.com [65.77.47.18]) by postgresql.org (Postfix) with ESMTP id BA2E39FC04A for ; Wed, 20 Jun 2007 15:03:32 -0300 (ADT) Received: from localhost (silene.metacarta.com [65.77.47.18]) by silene.metacarta.com (Postfix) with ESMTP id 28CFC14C86B2; Wed, 20 Jun 2007 14:03:31 -0400 (EDT) Received: from silene.metacarta.com ([65.77.47.18]) by localhost (silene.metacarta.com [65.77.47.18]) (amavisd-new, port 10024) with ESMTP id 00997-04; Wed, 20 Jun 2007 14:03:29 -0400 (EDT) X-Auth-Received: from [65.77.47.195] (dhcp-65-77-47-195.metacarta.com [65.77.47.195]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by silene.metacarta.com (Postfix) with ESMTP id AA52914C86B6; Wed, 20 Jun 2007 14:03:29 -0400 (EDT) Message-ID: <46796BF0.8010302@metacarta.com> Date: Wed, 20 Jun 2007 14:03:28 -0400 From: Karl Wright User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Alvaro Herrera Cc: Francisco Reyes , Tom Lane , pgsql-performance@postgresql.org Subject: Re: Performance query about large tables, lots of concurrent access References: <14291.1182221811@sss.pgh.pa.us> <4677B831.8060704@metacarta.com> <4677D298.2010109@metacarta.com> <20070619132643.GC4265@alvh.no-ip.org> <4677DC06.3000300@metacarta.com> <20070619134637.GG4265@alvh.no-ip.org> <467963A8.2060703@metacarta.com> <20070620175300.GN30369@alvh.no-ip.org> <46796A08.8080601@metacarta.com> <20070620175758.GP30369@alvh.no-ip.org> In-Reply-To: <20070620175758.GP30369@alvh.no-ip.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at metacarta.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/438 X-Sequence-Number: 25471 Alvaro Herrera wrote: > Karl Wright wrote: >> Alvaro Herrera wrote: >>> Karl Wright wrote: >>> >>>> (b) the performance of individual queries had already degraded >>>> significantly in the same manner as what I'd seen before. >>> You didn't answer whether you had smaller, more frequently updated >>> tables that need more vacuuming. This comment makes me think you do. I >>> think what you should be looking at is whether you can forget vacuuming >>> the whole database in one go, and make it more granular. >> I am afraid that I did answer this. My largest tables are the ones >> continually being updated. The smaller ones are updated only infrequently. > > Can you afford to vacuum them in parallel? > Hmm, interesting question. If VACUUM is disk limited then it wouldn't help, probably, unless I moved various tables to different disks somehow. Let me think about whether that might be possible. Karl