Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id C484A79A0B9 for ; Wed, 17 Mar 2010 18:19:27 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 18009-02-7 for ; Wed, 17 Mar 2010 21:19:16 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from serenity.inversion.ee (serenity.inversion.ee [194.204.33.112]) by mail.postgresql.org (Postfix) with ESMTP id 0DE5E79A0D0 for ; Wed, 17 Mar 2010 18:18:49 -0300 (ADT) Received: by serenity.inversion.ee (Postfix, from userid 108) id 2CAF6E34632; Wed, 17 Mar 2010 22:05:31 +0200 (EET) Received: from [IPv6:::1] (localhost [127.0.0.1]) by serenity.inversion.ee (Postfix) with ESMTP id A803AE34067; Wed, 17 Mar 2010 22:05:30 +0200 (EET) Subject: Re: Building multiple indexes concurrently From: Hannu Krosing To: Greg Smith Cc: Alvaro Herrera , Andres Freund , pgsql-performance@postgresql.org, Rob Wultsch , Tom Lane In-Reply-To: <4BA1403D.9030402@2ndquadrant.com> References: <2c5ef4e31003161804l5e32ceb9v6b7019118f30004d@mail.gmail.com> <2c5ef4e31003170807x3f26dd77v57a1631094bc5270@mail.gmail.com> <4BA12328.4080803@2ndquadrant.com> <201003172024.10538.andres@anarazel.de> <20100317202401.GC3902@alvh.no-ip.org> <4BA1403D.9030402@2ndquadrant.com> Content-Type: text/plain; charset="UTF-8" Date: Wed, 17 Mar 2010 23:18:47 +0200 Message-ID: <1268860727.19220.1089.camel@hvost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/231 X-Sequence-Number: 38056 On Wed, 2010-03-17 at 16:49 -0400, Greg Smith wrote: > Alvaro Herrera wrote: > > Andres Freund escribió: > > > > > >> I find it way much easier to believe such issues exist on a tables in > >> constrast to indexes. The likelihood to get sequential accesses on an index is > >> small enough on a big table to make it unlikely to matter much. > >> > > > > Vacuum walks indexes sequentially, for one. > > > > That and index-based range scans were the main two use-cases I was > concerned would be degraded by interleaving index builds, compared with > doing them in succession. I guess that tweaking file systems to allocate in bigger chunks help here ? I know that xfs can be tuned in that regard, but how about other common file systems like ext3 ? - Hannu Krosing http://www.2ndQuadrant.com PostgreSQL Scalability and Availability Services, Consulting and Training