Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id BBBDA1337B4E for ; Tue, 25 Jan 2011 22:57:18 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 56491-07 for ; Wed, 26 Jan 2011 02:57:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail148158.authsmtp.com (outmail148158.authsmtp.com [62.13.148.158]) by mail.postgresql.org (Postfix) with ESMTP id 3C63E1337B49 for ; Tue, 25 Jan 2011 22:57:10 -0400 (AST) Received: from mail-c193.authsmtp.com (mail-c193.authsmtp.com [62.13.128.118]) by punt6.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p0Q2vBYR079126; Wed, 26 Jan 2011 02:57:11 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 p0Q2v3O4081110; Wed, 26 Jan 2011 02:57:04 GMT Message-ID: <4D3F8D7F.6020806@agliodbs.com> Date: Tue, 25 Jan 2011 18:57:03 -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> In-Reply-To: <14452.1296010153@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Server-Quench: f4e7dfce-28f7-11e0-97bb-002264978518 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdyZgscClZXSx8a IioLCC5HRQ8+YBZL BAkGMA9GIUINWEQL c1AAcB1xOVtbHwkA AnYLWV5RV1dxXC1z bxRZbBtfZk9QXgRr T0pMQFdNFEsoAX0D QB1hVhl6dgRHeDBz YUdkECZfCUMuIxUo X0xcQ2obZGY1aH0W VxIKagNUcgFMehZC YlV+XD1vNG8XDQgF MDQGdxUsOSleIyNR XwdFLFQeTFZDFSQx TgwDGjNnG0AbSj97 JBsjMloRAEsKekI0 eQpnARRBdAQVDgRE Hlol X-Authentic-SMTP: 61633136333939.1014: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, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201101/204 X-Sequence-Number: 29226 >> If it's going to take 3 minutes each to write each of 3745 tapes, that >> means completing in around 9 days. > > Your logic has nothing to do with what is actually happening. Could we > have a little bit more patience to see what happens next? OK, I'll let it run overnight and give you the trace output. > (Memo to -hackers: what we lack in this trace is any indication of how > long the runs are. Maybe should add that. Knuth claims the initial > runs should amount to about 2X maintenance_work_mem on average, but > maybe there's something unusual about the data distribution here.) Well, for the straight test on event_time, the rows in the table should have been more-or-less physically already in order. This table is most-insert, and event_time mostly corresponds to current server time. For the composite index, rows would be more randomly distributed. -- -- Josh Berkus PostgreSQL Experts Inc. http://www.pgexperts.com