Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 3A5F62E0046 for ; Tue, 19 Feb 2008 15:51:40 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 20034-01-2 for ; Tue, 19 Feb 2008 15:51:32 -0400 (AST) Received: from serv01.siteground137.com (ns1.siteground137.com [67.15.250.10]) by postgresql.org (Postfix) with ESMTP id 011F62E0047 for ; Tue, 19 Feb 2008 15:51:35 -0400 (AST) Received: from cragnux.laika.com ([209.162.219.253]:58796 helo=dogma.ljc.laika.com) by serv01.siteground137.com with esmtpa (Exim 4.68) (envelope-from ) id 1JRYUs-0000PI-N9; Tue, 19 Feb 2008 13:51:22 -0600 Subject: Re: 7 hrs for a pg_restore? From: Jeff Davis To: Dave Cramer Cc: Douglas J Hunley , "Joshua D. Drake" , pgsql-performance@postgresql.org In-Reply-To: <50E6AB07-AEEB-4DBA-9994-C87CD773E9A6@fastcrypt.com> References: <200802191303.58840.doug@hunley.homeip.net> <20080219101254.754bd94d@commandprompt.com> <200802191358.38614.doug@hunley.homeip.net> <50E6AB07-AEEB-4DBA-9994-C87CD773E9A6@fastcrypt.com> Content-Type: text/plain Date: Tue, 19 Feb 2008 11:51:19 -0800 Message-Id: <1203450679.3846.107.camel@dogma.ljc.laika.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - serv01.siteground137.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - j-davis.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/225 X-Sequence-Number: 28767 On Tue, 2008-02-19 at 14:28 -0500, Dave Cramer wrote: > shared buffers is *way* too small as is effective cache > set them to 2G/6G respectively. They are way too small, but I don't think that explains the index creation time. Effective_cache_size is only used by the planner, and this problem is not caused by a poorly chosen plan. It's important to set shared_buffers higher as well, but he has so much RAM compared with his dataset that he's certainly not going to disk. I don't think this explains it either. I think it's just the result of building a lot of indexes on localized text using only one core at a time. Regards, Jeff Davis