Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 162381337BF3 for ; Mon, 11 Apr 2011 15:50:03 -0300 (ADT) 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 63749-01-3 for ; Mon, 11 Apr 2011 18:49:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f46.google.com (mail-ew0-f46.google.com [209.85.215.46]) by mail.postgresql.org (Postfix) with ESMTP id 4C3FF1337C43 for ; Mon, 11 Apr 2011 15:39:57 -0300 (ADT) Received: by ewy4 with SMTP id 4so1805309ewy.19 for ; Mon, 11 Apr 2011 11:39:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=pdVE0CJOBzYrb3MnoKdViRstJDKzPj+COruHNrl2j5c=; b=CAOslRWYLWhvK9kOI3WMolW0sKIxjcv7nMjgdGphb/xql6p8RWRb4qW4mNnbZdfAWa rdztdAemyP8PwQ9Ke7FndOa7w+v0X8m97CppqwlLc+fyhlaVbeScCKpcOBFlFr2AVYon d5LKLLp4T+N+qsKZBHNn0OWWKMfDsuuqWFMnE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=D5UhgG50mS43EhxXVtmqKxL1QxCeWj3NXh09L2vOGkWDxGICq6ZSeem/d+cwe6ut0D WaMr7zRFYAUJor38wLitHnoJav8uPv9I7aGPWMxf0mACTAmpoQFlwVbhpA0zDOVoT4N+ fmDsbYJdq3+BHDbM6gy1xpsOeUjPVBZC1JN6Q= MIME-Version: 1.0 Received: by 10.213.14.193 with SMTP id h1mr1175054eba.52.1302547189696; Mon, 11 Apr 2011 11:39:49 -0700 (PDT) Received: by 10.213.9.207 with HTTP; Mon, 11 Apr 2011 11:39:49 -0700 (PDT) In-Reply-To: <6692.1302547143@sss.pgh.pa.us> References: <4325.1302369004@sss.pgh.pa.us> <4DA2679D.5000207@2ndQuadrant.com> <4DA2B0A4.6050605@2ndquadrant.com> <6692.1302547143@sss.pgh.pa.us> Date: Mon, 11 Apr 2011 12:39:49 -0600 Message-ID: Subject: Re: Multiple index builds on same table - in one sweep? From: Scott Marlowe To: Tom Lane Cc: Greg Smith , pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201104/114 X-Sequence-Number: 43176 On Mon, Apr 11, 2011 at 12:39 PM, Tom Lane wrote: > Scott Marlowe writes: >> On Mon, Apr 11, 2011 at 1:41 AM, Greg Smith wrote= : >>> Scott Marlowe wrote: >>>> FYI, in 8.3.13 I get this for all but one index: >>>> ERROR: =A0deadlock detected > >>> Is that trying to build them by hand? =A0The upthread request here is a= ctually >>> already on the TODO list at http://wiki.postgresql.org/wiki/Todo and it >>> talks a bit about what works and what doesn't right now: > >> Yes, by hand. =A0It creates an entry for the index but lists but marks >> it as INVALID > > Are you trying to use CREATE INDEX CONCURRENTLY? =A0AFAIR that doesn't > support multiple index creations at the same time. =A0Usually you wouldn'= t > want that combination anyway, since the point of CREATE INDEX > CONCURRENTLY is to not prevent foreground use of the table while you're > making the index --- and multiple index creations are probably going to > eat enough I/O that you shouldn't be doing them during normal operations > anyhow. > > Just use plain CREATE INDEX. I thought they'd stand in line waiting on each other. I'll give it a try.