Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 294B92E0037 for ; Thu, 22 May 2008 15:34:57 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 51475-01 for ; Thu, 22 May 2008 15:34:51 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.177]) by developer.postgresql.org (Postfix) with ESMTP id 1024B2E002D for ; Thu, 22 May 2008 15:34:52 -0300 (ADT) Received: by el-out-1112.google.com with SMTP id r23so132059elf.10 for ; Thu, 22 May 2008 11:34:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=uXYRXX3kP4bohMO7zmo96SSPwJZ5NtkjOisdYOh5D0U=; b=Lh7iFQdehK9vY0gXl9PM/Iu2wc5Z42gN0tsoAcogo7smPUq1yKPLgRjLbOzXw07CDyMeAmcP4GLrqcrV/o7pqx1C1lwqvXUUQJYrR7CU4JqgpMaTiKVnO2WzTR/qyRKjC2CBVsD/Ot3gSUdHszDPH75yI9gnt8piQ2mgacakUsg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iHnLhuLTavhmAaWOo4LFZNKOsS8TOsXSq0608UzysBXuq+jCCuR2lcQ+KZhn1aYyJ5D0v0Oo7g8AD/9UOJ2ymSjcHk7nx1ZOmx/YLStuB6Nimb8AYANP6Eot06aZDBg3sFYiVEgKAV2AnBxTHgChIwwLrlFYpOjWoL+lpiecLKI= Received: by 10.114.151.13 with SMTP id y13mr562327wad.148.1211481279858; Thu, 22 May 2008 11:34:39 -0700 (PDT) Received: by 10.114.155.9 with HTTP; Thu, 22 May 2008 11:34:39 -0700 (PDT) Message-ID: <1d4e0c10805221134u50793d5ew7d9f1031cd0ad944@mail.gmail.com> Date: Thu, 22 May 2008 20:34:39 +0200 From: "Guillaume Smet" To: "Scott Marlowe" Subject: Re: Index creation time and distribution Cc: pgsql-performance In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1d4e0c10805220532v514c2bd5je4c6c20ceb485495@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/308 X-Sequence-Number: 30276 On Thu, May 22, 2008 at 6:50 PM, Scott Marlowe wrote: > Just curious, what happens if you create the date index first, then > the clazz one? It's not due to any cache effect if it's your question. It's mostly CPU time and changing the order doesn't change the behaviour. I'll make some tests with 8.3 in a few weeks (I'll be out of town next week) to see if using PostgreSQL qsort reduces the problem. -- Guillaume