Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 8361F9FB6BA for ; Fri, 18 May 2007 20:21:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 49106-02 for ; Fri, 18 May 2007 20:21:08 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 447839FB7EC for ; Fri, 18 May 2007 20:21:12 -0300 (ADT) Received: from perhan.alvh.no-ip.org (201-221-217-243.bk12-dsl.surnet.cl [201.221.217.243]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l4INLB7l009582; Fri, 18 May 2007 16:21:12 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 8D68732A14; Fri, 18 May 2007 19:20:52 -0400 (CLT) Date: Fri, 18 May 2007 19:20:52 -0400 From: Alvaro Herrera To: Craig James Cc: cyber-postgres@midnightfantasy.com, pgsql-performance@postgresql.org Subject: Re: 121+ million record table perf problems Message-ID: <20070518232052.GG15691@alvh.no-ip.org> References: <464E29A4.4050309@emolecules.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <464E29A4.4050309@emolecules.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Fri, 18 May 2007 16:21:12 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/357 X-Sequence-Number: 24747 Craig James wrote: > Better yet, if you can stand a short down time, you can drop indexes on > that column, truncate, then do 121 million inserts, and finally > reindex. That will be MUCH faster. Or you can do a CLUSTER, which does all the same things automatically. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support