Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kelNB-0007YB-Nh for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Nov 2020 20:45:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kelEP-0006uz-I8 for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Nov 2020 20:36:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kelEO-0006uq-JI for pgsql-hackers@lists.postgresql.org; Mon, 16 Nov 2020 20:36:09 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kelEG-00027R-T9 for pgsql-hackers@lists.postgresql.org; Mon, 16 Nov 2020 20:36:08 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 788895C0213; Mon, 16 Nov 2020 15:35:58 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 16 Nov 2020 15:35:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=39XFt00Lw3mQ55A8w wYso0zeNq5ngb1LwTkKTAEiPZc=; b=I9VnVsiqZZYSo/A+W5UP/zRI0gizXSskF U4Z136LWrRhMe1QThb3jva/9R6VasslvM6/87xEqM10zVwK+UFn5x0dCUu3nNgOy qTNEmUT7X9DrScdG9jgwH6md73Skfg3qHnr0fBUnlLkZk0WzVbojFPl5kxfpUMRY 2Pil6kld73X552ca7lkq5Hs9dHCp5PN0dI2BrnUOMthi1+68RstNfBFncU0+YXl2 pI/ENKsO4BHikudGFhzdONulhCWUor4IVNUu3Olhl94QbBiD8zZmcntZCADMDSo0 NoV5bT51EtZssO96YDjyWmXA04/RzZT5DPiNG7qF0E3u3qKkIe41g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudefuddgudeflecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkgggtuggjfgesthdtredttdervdenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvefgleevgeeujeeghfegteeghfegheeifeehheelteet ieduieeihffggfehffetnecukfhppeduledtrdelhedrudekrdejleenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghl vhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.18.79]) by mail.messagingengine.com (Postfix) with ESMTPA id 41A823280059; Mon, 16 Nov 2020 15:35:57 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id BCCF72A1561; Mon, 16 Nov 2020 17:35:54 -0300 (-03) Date: Mon, 16 Nov 2020 17:35:54 -0300 From: Alvaro Herrera To: Dmitry Dolgov <9erthalion6@gmail.com> Cc: Michael Paquier , Tom Lane , James Coleman , Pg Hackers Subject: Re: remove spurious CREATE INDEX CONCURRENTLY wait Message-ID: <20201116203554.GA15547@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201116182446.qcg3o6szo2zookyr@localhost> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Nov-16, Dmitry Dolgov wrote: > The same with reindex without locks: > > nsecs : count distribution > 512 -> 1023 : 0 | | > 1024 -> 2047 : 111345 | | > 2048 -> 4095 : 6997627 |****************************************| > 4096 -> 8191 : 18575 | | > 8192 -> 16383 : 586 | | > 16384 -> 32767 : 312 | | > 32768 -> 65535 : 18 | | > > The same with reindex with locks: > > nsecs : count distribution > 512 -> 1023 : 0 | | > 1024 -> 2047 : 59438 | | > 2048 -> 4095 : 6901187 |****************************************| > 4096 -> 8191 : 18584 | | > 8192 -> 16383 : 581 | | > 16384 -> 32767 : 280 | | > 32768 -> 65535 : 84 | | > > Looks like with reindex without locks is indeed faster (there are mode > samples in lower time section), but not particularly significant to the > whole distribution, especially taking into account extremity of the > test. I didn't analyze these numbers super carefully, but yeah it doesn't look significant. I'm looking at these patches now, with intention to push.