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 1ml9LN-0007P7-Ub for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Nov 2021 12:38:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ml9LM-0004Ln-TM for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Nov 2021 12:38:16 +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 1ml9LM-0004Ep-KH for pgsql-hackers@lists.postgresql.org; Thu, 11 Nov 2021 12:38:16 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ml9LJ-0001Qh-0I for pgsql-hackers@lists.postgresql.org; Thu, 11 Nov 2021 12:38:15 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 77D643202184; Thu, 11 Nov 2021 07:38:10 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 11 Nov 2021 07:38:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=Jll5tSk1Lh9nOP2kOgXuAb52gTJ94e59ZQfbt8GBwb0=; b=VSoIUL9j NvMXREfojX+A4G/AKa7U664gM0vwj+dAjohg7sjyWIEnZes4c7GtdetUvZc5+4bv Z7UTiRTEglbTXe1iVGfEKSUa6eFT6ibHE9dUIEC3ym5pb1OW9LIR9PO44skUpyFP Irp1uhzghGP1Z5DVNeexqeK9w9QsI7eBDiHy8Eu7XzCQWX2A0BjLFQqGDmUGeK3U Xkl9hUQdtnqoSPluFAol2LMkegVT4qvUhaFl0BNhUmo0rSg4ItdF2kyKsCs1kx3g bpoeF4HCcPOxWbSIL/DUKxT2eFJCReRpO1UI/zjdGip1b1OSgK1E/cPi/DkO6rEK MqcsV/uxJWPldQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrvddugdegvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqne cuggftrfgrthhtvghrnhepudejveejffejveduudetvdekieeuiedtvdeileefkeevjedu feeguedvjefhueelnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenuc evlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgv rhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 11 Nov 2021 07:38:09 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id EE5FC2A07E2; Thu, 11 Nov 2021 09:38:07 -0300 (-03) Date: Thu, 11 Nov 2021 09:38:07 -0300 From: Alvaro Herrera To: Andres Freund Cc: Tom Lane , Michael Paquier , Dmitry Dolgov <9erthalion6@gmail.com>, James Coleman , Pg Hackers Subject: Re: remove spurious CREATE INDEX CONCURRENTLY wait Message-ID: <202111111238.5sql3jupeshe@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211111020724.ggsfhcq3krq5r4hb@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Nov-10, Andres Freund wrote: > > Reverts 27838981be9d (some comments are kept). Per discussion, it does > > not seem safe to relax the lock level used for this; in order for it to > > be safe, there would have to be memory barriers between the point we set > > the flag and the point we set the trasaction Xid, which perhaps would > > not be so bad; but there would also have to be barriers at the readers' > > side, which from a performance perspective might be bad. > > > > Now maybe this analysis is wrong and it *is* safe for some reason, but > > proof of that is not trivial. > > I just noticed that this commit (dcfff74fb16) didn't revert the change of lock > level in ReplicationSlotRelease(). Was that intentional? Hmm, no, that seems to have been a mistake. I'll restore it. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "El miedo atento y previsor es la madre de la seguridad" (E. Burke)