Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 90BFBB5DBC6 for ; Mon, 13 Jun 2011 13:11:59 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 16992-02 for ; Mon, 13 Jun 2011 16:11:53 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ey0-f174.google.com (mail-ey0-f174.google.com [209.85.215.174]) by mail.postgresql.org (Postfix) with ESMTP id E87AFB5DBCD for ; Mon, 13 Jun 2011 13:11:52 -0300 (ADT) Received: by eyx24 with SMTP id 24so1652101eyx.19 for ; Mon, 13 Jun 2011 09:11:51 -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=Pntkb2JKYzoxR9KjEOhZLNqpKofgR3kolLVbVp3wKgw=; b=DUfbMCMwmqF1A01GS9BWQ1s3Igd82hzsnHP4iyINqiSbulMCHVIlZtA873I/DnccGu hGnX8EdI3nyd5Bw2U1H7YcaHNDNg4WmxwslEOYJa1rkjb7CYHZ9Lf0hE20dlVkY/aGfi +WQu03nop5ofUH2aNVkZDOEAiROP+Clfn4GtU= 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=YhvHa0SF43bPK51l/Idot6dabmfpNv9qOp3uaiyDL/s/VHsFxmP05WcPdfS9D99bz+ K3aRL2Sh+Z66ORvJNIIgquRi8l9Ts777lFveAR9ioLwXfPox4+T61NCNqWjZCPyEzTJE iPRGLP3LVaVClfY4LV2mAZO8zf4VPNBLLJ/4g= MIME-Version: 1.0 Received: by 10.14.98.71 with SMTP id u47mr2371189eef.247.1307981510843; Mon, 13 Jun 2011 09:11:50 -0700 (PDT) Received: by 10.14.96.4 with HTTP; Mon, 13 Jun 2011 09:11:48 -0700 (PDT) In-Reply-To: <1306424785-sup-7743@alvh.no-ip.org> References: <4DDB64CB.7070109@2ndQuadrant.com> <1306269968-sup-2890@alvh.no-ip.org> <4DDC1DBF.3050306@2ndQuadrant.com> <1306346092-sup-2903@alvh.no-ip.org> <4DDD6EC3.80703@2ndQuadrant.com> <1306424785-sup-7743@alvh.no-ip.org> Date: Mon, 13 Jun 2011 12:11:48 -0400 Message-ID: Subject: Re: Improve warnings around CREATE INDEX CONCURRENTLY From: Robert Haas To: Alvaro Herrera Cc: Greg Smith , pgsql-docs 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.898 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201106/39 X-Sequence-Number: 6813 On Thu, May 26, 2011 at 11:52 AM, Alvaro Herrera wrote: > Excerpts from Greg Smith's message of mi=E9 may 25 17:04:03 -0400 2011: > >> Sure. =A0Simon's command string idea might work better, and doing some >> extra lock decoration as you suggested in the above thread would be >> another level of improvement. =A0We should pick up redesign later on the >> main list. =A0You can at least count me in as someone who wants to see >> this improved now. > > Great > >> Back to the doc patch I submitted...is that a useful step toward making >> this issue visible enough to users for now to help? > > Sure, why not? =A0I thought I could choose my bikeshed color while I was > here, how about > > + =A0 =A0second and third transaction. =A0All active transactions at the = time the > + =A0 =A0second table scan starts, not just ones that already involve the= table, > + =A0 =A0have the potential to block the concurrent index creation until = they > + =A0 =A0finish. =A0When checking for transactions that > + =A0 =A0could still use the original index, concurrent index creation ad= vances > + =A0 =A0through potentially interfering older transactions one at a time= , > + =A0 =A0obtaining shared locks on their virtual transaction identifiers = to wait for > + =A0 =A0them to complete. Alvaro, did you commit this? --=20 Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company