Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 9A4789FC0AF for ; Wed, 20 Jun 2007 18:40:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 71295-02 for ; Wed, 20 Jun 2007 18:40:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from main2.mycybernet.net (main2.mycybernet.net [209.222.63.140]) by postgresql.org (Postfix) with ESMTP id 8BDDA9FBF38 for ; Wed, 20 Jun 2007 18:40:30 -0300 (ADT) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=phlogiston.dydns.org) by main2.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1I17uf-0000HL-Jq for pgsql-performance@postgresql.org; Wed, 20 Jun 2007 17:40:29 -0400 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id 4B5423F9E; Wed, 20 Jun 2007 17:40:24 -0400 (EDT) Date: Wed, 20 Jun 2007 17:40:24 -0400 From: Andrew Sullivan To: pgsql-performance@postgresql.org Subject: Re: Performance query about large tables, lots of concurrent access Message-ID: <20070620214024.GH743@phlogiston.dyndns.org> References: <4676DD57.7070304@metacarta.com> <20070620175300.GN30369@alvh.no-ip.org> <46796A08.8080601@metacarta.com> <200706201425.28557.sthomas@leapfrogonline.com> <46799C45.7080805@metacarta.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46799C45.7080805@metacarta.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/452 X-Sequence-Number: 25485 On Wed, Jun 20, 2007 at 05:29:41PM -0400, Karl Wright wrote: > A nice try, but I had just completed a VACUUM on this database three > hours prior to starting the VACUUM that I gave up on after 27 hours. You keep putting it that way, but your problem is essentially that you have several tables that _all_ need to be vacuumed. VACUUM need not actually be a database-wide operation. > earlier finished in six hours - but to accomplish that I had to shut > down EVERYTHING else that machine was doing.) This suggests to me that you simply don't have enough machine for the job. You probably need more I/O, and actually more CPU wouldn't hurt, because then you could run three VACUUMs on three separate tables (on three separate disks, of course) and not have to switch them off and on the CPU. A -- Andrew Sullivan | ajs@crankycanuck.ca A certain description of men are for getting out of debt, yet are against all taxes for raising money to pay it off. --Alexander Hamilton