Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 27F48133616B for ; Wed, 26 Jan 2011 15:43:40 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 65047-07 for ; Wed, 26 Jan 2011 19:43:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail149123.authsmtp.net (outmail149123.authsmtp.net [62.13.149.123]) by mail.postgresql.org (Postfix) with ESMTP id 965401337B58 for ; Wed, 26 Jan 2011 15:43:32 -0400 (AST) Received: from mail-c187.authsmtp.com (mail-c187.authsmtp.com [62.13.128.33]) by punt6.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p0QJhVdu063534; Wed, 26 Jan 2011 19:43:31 GMT Received: from Sidney-Stratton.local (dsl081-245-111.sfo1.dsl.speakeasy.net [64.81.245.111]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id p0QJhSKA030624; Wed, 26 Jan 2011 19:43:29 GMT Message-ID: <4D40795A.8000103@agliodbs.com> Date: Wed, 26 Jan 2011 11:43:22 -0800 From: Josh Berkus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: Tom Lane CC: pgsql-bugs@postgresql.org Subject: Re: Multicolun index creation never completes on 9.0.1/solaris References: <4D3F2D10.1020905@agliodbs.com> <21735.1295990515@sss.pgh.pa.us> <4D3F86D9.9080200@agliodbs.com> <14452.1296010153@sss.pgh.pa.us> <4D4069EF.6040603@agliodbs.com> <23139.1296069017@sss.pgh.pa.us> In-Reply-To: <23139.1296069017@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Server-Quench: 8d36dbdb-2984-11e0-ab46-001185d377ca X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdyZgscClZXSx8a IioLCC5HRQ8+YBZL BAkGMA9GIUINWEQL c1AAcB1xOVtbHwkA AnYKUl5QU1dyWS1z bxRZbBtfZk9QXgRr T0pMQFdNFEsoAX17 Xn1lIxlxdwNEfDB1 ZkFmEHgPX0IuJxIv X0xdHWkbZGY1aH1O AkReagNUcQJCe0tG bVcsBT1vNG8XDQgF MDQGdxUsOSleIyNR XwdFLFQeTFZDFSQx TgwDGjNnG0AbSj97 JBsjMloRAEsKekI0 eQpnARRBdAQVDgRE Hlol X-Authentic-SMTP: 61633136333939.1000:706 X-AuthFastPath: 0 (Was 255) X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201101/215 X-Sequence-Number: 29237 Tom, > [ raised eyebrow... ] Those numbers are the differences between two > gettimeofday() readings. It's really really hard to believe that that's > wrong, unless there's something seriously wrong with your machine. Actually, you're right ... I don't know what time the run27 message was posted. It's possible that it finished run27 at 9pm last night ... Oh! Actually, it only *did* 27 runs. So it actually completed building the index. I'd expected trace_sort to give me some kind of completion message; apologies for not checking all screen windows. So, why didn't the index build complete (after more than 36 hours) when I ran it as part of pg_restore? I guess this goes back to being a pg_restore problem and not an index build problem. > FWIW, I did a test last night on the time to sort some random > (varchar, timestamptz) data using git HEAD. I didn't have enough disk > space to sort 1.4 billion rows, but I tested with 200 million rows and > 1GB maintenance_work_mem, and was able to create an index in 2424 > seconds (~40 minutes) --- this on a pretty generic desktop machine. > I don't see a reason to think the runtime for 1.4 billion would have > been over 5 hours. The log output for my test looked like 2+ hours is then still very slow considering the machine I'm on compared to yours. I wonder if we maybe should be using GCC instead of SunCC. Oh, that's why: it's a SPARC processor. Slowness explained then. > Your machine seems to be dumping a run about once every 250-300 seconds, > which is about half the speed of mine, which is a bit odd if it's big > iron. (I wonder whether you have a non-C locale selected ...) See above. So, as usual, I've completely mislocated the bug. I'll need to rerun the pg_restore and actually diagnose *that*. -- -- Josh Berkus PostgreSQL Experts Inc. http://www.pgexperts.com