Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 7B58F1337B81 for ; Tue, 25 Jan 2011 16:05:49 -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 73156-02 for ; Tue, 25 Jan 2011 20:05:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail148131.authsmtp.com (outmail148131.authsmtp.com [62.13.148.131]) by mail.postgresql.org (Postfix) with ESMTP id 8B9FB1337B34 for ; Tue, 25 Jan 2011 16:05:41 -0400 (AST) Received: from mail-c193.authsmtp.com (mail-c193.authsmtp.com [62.13.128.118]) by punt2.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p0PK5e98071645 for ; Tue, 25 Jan 2011 20:05:40 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 p0PK5aQ6018246 for ; Tue, 25 Jan 2011 20:05:37 GMT Message-ID: <4D3F2D10.1020905@agliodbs.com> Date: Tue, 25 Jan 2011 12:05:36 -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: pgsql-bugs@postgresql.org Subject: Multicolun index creation never completes on 9.0.1/solaris Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Server-Quench: 7a774025-28be-11e0-97bb-002264978518 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdyZgscClZXSx8a IioLCC5HRQ8+YBZL BAkbIhBDJB8DSAtK Gl5dNUZcKlAHXFUf XCRcFVZRTycgB3x3 awtQfQddaEpLVQZi Hk5NXFpTCgdsBAIA Bx8BUBxwchpGNj5w BT1nDxFdXEVyd0J7 DEtUFm5IYjZnb2Qf UkVFdQsGJR5Lf0pF d1l4BiEQYWUFZHxk TlBjYmlhKxBCLDhU SQYJMFRaQEAHEy50 TAoPFCkuGktNQSgt IgZuIVkZBEIcLkgp eVwnEQNea1lLTRZZ G0hXATQx 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/193 X-Sequence-Number: 29215 Note: I have this running now on a test box. If someone responds in the next couple hours, I can run whatever diagnostics you want on it. Otherwise I'll kill it off and start over with debug logging turned on. Version: 9.0.1 Platform: Solaris 10u8 / ZFS over DAS 7-drive array Severity: Serious Reproduceable? Always, on this machine Description: I've been running tests for a client on their old production machine. Part of the test setup involves restoring a 70GB table (part of a 400GB database). Restoring this table always fails to complete (we terminate it after 3 days). Watching it closer this time, I've noticed that it's hanging on the creation of a multicolumn index*: "write_log_accounttime_idx" btree (account_id, event_time) Table def*: Table "public.write_log" Column | Type | Modifiers ----------------+--------------------------+------------------------ log_id | character varying | not null account_id | character varying | write_id | character varying | event_time | timestamp with time zone | not null default now() event_loc | character varying(1024) | source | character varying(1024) | detail | character varying(1024) | source_ip | inet | event_length | integer | keyword | character varying | account_id is usually a 32-character hex string (a UUID). When trying to restore this index ... or, indeed, do *anything* else with in including ANALYZE or REINDEX ... takes longer than we're willing to monitor in order to complete (I once waited 30 hours). (I was able to test Analyze/reindex because the first time I converted the database using pg_upgrade). Interestingly, on the production database (where the index was successfully created on 8.4.4., that index has no entries in the stats table, i.e. pg_stat_user_indexes does not have a row for that index. However, this database *did* restore on the same platform in 8.4.4. The PK for this table restores successfully. I haven't been able to test other single-column indexes. Watching the process of creating this index, it's certainly busy: read(224, " o02\0\0E0C9 ]D101\0\0\0".., 8192) = 8192 read(224, " o02\0\0 P\f ^D101\0\0\0".., 8192) = 8192 read(224, " o02\0\0 P88E7D101\0\0\0".., 8192) = 8192 read(224, " o02\0\010 . ^D101\0\0\0".., 8192) = 8192 read(224, " o02\0\0B0 r ^D101\0\0\0".., 8192) = 8192 read(224, " o02\0\010 q ^D101\0\0\0".., 8192) = 8192 read(224, " o02\0\0C8F9 ^D101\0\0\0".., 8192) = 8192 read(224, " o02\0\0 hBE aD101\0\0\0".., 8192) = 8192 read(224, " o02\0\0C8D6 ^D101\0\0\0".., 8192) = 8192 read(224, " o02\0\0 `F8 ^D101\0\0\0".., 8192) = 8192 write(219, " e\0\0\0\0\0\0\08082D4 V".., 8192) = 8192 read(224, " o02\0\08085 xD101\0\0\0".., 8192) = 8192 read(224, " o02\0\0E8 ] _D101\0\0\0".., 8192) = 8192 read(224, " o02\0\0 ( _ _D101\0\0\0".., 8192) = 8192 read(224, " o02\0\0B080 _D101\0\0\0".., 8192) = 8192 read(224, " o02\0\0F8A2 _D101\0\0\0".., 8192) = 8192 read(224, " o02\0\0 xB5EAD101\0\0\0".., 8192) = 8192 read(224, " o02\0\0 @E4 _D101\0\0\0".., 8192) = 8192 read(224, " o02\0\0 \b `D101\0\0\0".., 8192) = 8192 read(224, " o02\0\090 ) `D101\0\0\0".., 8192) = 8192 write(219, "\0 OA197E1 !01\0 ,\0\0\0".., 8192) = 8192 read(224, " o02\0\0B0 K `D101\0\0\0".., 8192) = 8192 read(224, " o02\0\01002 bD101\0\0\0".., 8192) = 8192 read(224, " o02\0\0188E `D101\0\0\0".., 8192) = 8192 read(224, " o02\0\0 HB0 `D101\0\0\0".., 8192) = 8192 read(224, " o02\0\0 HD2 `D101\0\0\0".., 8192) = 8192 read(224, " o02\0\0 H U\vD201\0\0\0".., 8192) = 8192 read(224, " o02\0\0 x14 aD101\0\0\0".., 8192) = 8192 read(224, " o02\0\0C8B9 aD101\0\0\0".., 8192) = 8192 read(224, " o02\0\010BB aD101\0\0\0".., 8192) = 8192 read(224, " o02\0\0 h v aD101\0\0\0".., 8192) = 8192 write(219, " ,\0\0\0F4\0E8 *05\0 ( @".., 8192) = 8192 This is also the kind of activity I'd expect to see for an index build. But ... it goes on forever. The current index build run has been going for almost 100 hours. More detail: mainentance_work_mem = 1GB (out of 32GB RAM available) 9.0.1 was built from source, using Sun CC for the current test, I'm running with fsync off (but I've had the same issue with fsync on) Ideas? (* object names have been changed to preserve confidentiality) -- -- Josh Berkus PostgreSQL Experts Inc. http://www.pgexperts.com