X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 0D4F111F68C8 for ; Thu, 30 Mar 2006 11:19:17 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 02517-01-2 for ; Thu, 30 Mar 2006 11:19:17 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 51CE211F678B for ; Thu, 30 Mar 2006 11:19:14 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k2UFJD5u014853; Thu, 30 Mar 2006 10:19:13 -0500 (EST) To: Gavin Hamill cc: pgsql-performance@postgresql.org Subject: Re: CREATE INDEX rather sluggish In-reply-to: <442B9625.1060408@laterooms.com> References: <442B9625.1060408@laterooms.com> Comments: In-reply-to Gavin Hamill message dated "Thu, 30 Mar 2006 09:26:13 +0100" Date: Thu, 30 Mar 2006 10:19:13 -0500 Message-ID: <14852.1143731953@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.114 required=5 tests=[AWL=0.114] X-Spam-Score: 0.114 X-Spam-Level: X-Archive-Number: 200603/623 X-Sequence-Number: 18060 Gavin Hamill writes: > The table has just under six million rows - should it really be taking > nearly six minutes to add an index? Try running it with trace_sort enabled to get more info about where the time is going. We've been doing some considerable work on the sorting code in the last couple months, so 8.2 should be better, but I'd like to verify that you're not seeing something we don't know about. > maintenance_work_mem = 262144 Fooling with this might affect the results some. regards, tom lane