Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 2510DB5DBE6 for ; Thu, 26 May 2011 12:52:41 -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 79427-02 for ; Thu, 26 May 2011 15:52:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id C18AFB5DBE0 for ; Thu, 26 May 2011 12:52:33 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id A3F49348045; Thu, 26 May 2011 08:52:32 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jzrSUjyrnuGy; Thu, 26 May 2011 08:52:30 -0700 (PDT) Received: from perhan.alvh.no-ip.org (unknown [190.95.22.219]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 709F7348044; Thu, 26 May 2011 08:52:30 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 7A55A6E49D; Thu, 26 May 2011 11:52:27 -0400 (CLT) Content-Type: text/plain; charset=UTF-8 Cc: pgsql-docs Subject: Re: Improve warnings around CREATE INDEX CONCURRENTLY From: Alvaro Herrera To: Greg Smith In-reply-to: <4DDD6EC3.80703@2ndQuadrant.com> 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> Date: Thu, 26 May 2011 11:52:27 -0400 Message-Id: <1306424785-sup-7743@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201105/86 X-Sequence-Number: 6761 Excerpts from Greg Smith's message of mié may 25 17:04:03 -0400 2011: > Sure. Simon'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. We should pick up redesign later on the > main list. You 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? I thought I could choose my bikeshed color while I was here, how about + second and third transaction. All active transactions at the time the + second table scan starts, not just ones that already involve the table, + have the potential to block the concurrent index creation until they + finish. When checking for transactions that + could still use the original index, concurrent index creation advances + through potentially interfering older transactions one at a time, + obtaining shared locks on their virtual transaction identifiers to wait for + them to complete. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support