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 1kzQ00-0006bl-H9 for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Jan 2021 20:10:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kzPzz-0002j6-DW for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Jan 2021 20:10:39 +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 1kzPzz-0002iz-6t for pgsql-hackers@lists.postgresql.org; Tue, 12 Jan 2021 20:10:39 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzPzt-00071T-5k for pgsql-hackers@lists.postgresql.org; Tue, 12 Jan 2021 20:10:38 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id D13B75C05E9; Tue, 12 Jan 2021 15:10:31 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Tue, 12 Jan 2021 15:10:31 -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=tEBj6fRo6sO8BYdxVGm/In5ORGDZ3tO81i3DIrMnfCk=; b=VxgyJfDh fsXB/larAu7HlJ99gCuPHOEUFDRp3SdrUr5Jj9N1S7JcyVpNhn995Y/Oq9ouWdVL XQNMHdPp5FbekPOeHyhWpqsPRJYajPWSMkWGCCluT7Hv/PeBy8uKmmlbakA+c+el EivZm8QBk99r8yXD8mXx60MUZGHcsg4YcQXPTROzXzYc3XtKNvrQFv93+Afge/1T Z+qrUFNUnE0qXJN6uh6kLqxR/19Y0e6122JTqOycK1izD036itZg9V9oIxtRyiY5 5typgAJLnXly+BJeY/hyDDgE6S+lwh3dHEeQVP7HgHRtmUgpprLpVTUvcRdnAj5d h/kVd/TF/0TbUw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedukedrtddtgddutdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjfgesthekredttderjeenucfhrhhomheplmhlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepteegffeuhfeiieegfeelhedujedtfffguefgjedtkeev jeduvdffffejgfevieeknecukfhppeduledtrdelhedrudelrddujeejnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsegr lhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.177]) by mail.messagingengine.com (Postfix) with ESMTPA id 4C43F24005B; Tue, 12 Jan 2021 15:10:31 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 746CD2A0FBF; Tue, 12 Jan 2021 17:10:28 -0300 (-03) Date: Tue, 12 Jan 2021 17:10:28 -0300 From: =?iso-8859-1?Q?=C1lvaro?= Herrera To: Masahiko Sawada Cc: Hamid Akhtar , PostgreSQL Hackers Subject: Re: {CREATE INDEX, REINDEX} CONCURRENTLY improvements Message-ID: <20210112201028.GA5902@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2021-Jan-04, Masahiko Sawada wrote: > On Tue, Dec 8, 2020 at 5:18 PM Hamid Akhtar wrote: > > > > The following review has been posted through the commitfest application: > > make installcheck-world: tested, passed > > Implements feature: not tested > > Spec compliant: not tested > > Documentation: not tested > > > > The patch looks good to me. With regards to the code comments, I had pretty similar concerns as already raised by Dmitry; and those have already been answered by you. So this patch is good to go from my side once you have updated the comments per your last email. > > For the 0001 patch, since ReindexIndexInfo is used only within > ReindexRelationConcurrently() I think it’s a function-local structure > type. So we can declare it within the function. What do you think? That's a good idea. Pushed with that change, thanks. Thanks also to Dmitry and Hamid for the reviews. -- Álvaro Herrera 39°49'30"S 73°17'W