Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9ma7-0004nR-Ex for pgsql-committers@arkaria.postgresql.org; Fri, 29 Mar 2019 08:09:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h9ma5-0000kF-VF for pgsql-committers@arkaria.postgresql.org; Fri, 29 Mar 2019 08:09:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9ma5-0000k7-KB for pgsql-committers@lists.postgresql.org; Fri, 29 Mar 2019 08:09:41 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9ma2-0001CA-TX for pgsql-committers@lists.postgresql.org; Fri, 29 Mar 2019 08:09:40 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E482321BCA; Fri, 29 Mar 2019 04:09:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 29 Mar 2019 04:09:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=p9r2aoI50sZJc8ukvmOkx3eV3iB fi8bHCYUfnOJsgX4=; b=fXdcyKwsDA+4FNapj+JP0gagOwFcvV9SDgf2+Db55AK +fvCqvs3oJwSjOYyoYBpLv74vEFbq7W2swQNtwXxsNmue+LEU6SQ7WBmHdH7Hweb eAXMknTyKVU6+2Cv3hq3dRzjV4lIluvAcBTTiB+REzR2ieEnZLFspUA3CKxiCCuJ 8J8CtREo6CVzSbk1uCisr6KHVr+9yCZDRugMDsFQAwxkPxFO81oqDQi/U2M1tQPt HgmN5mAJdwjmTz4tbo78T7VoSf9qJgNjwRObacKaUVd0U6QSzNZPAlVFGrBpfFaL HqmHvpjVfgiKa9au20J3/T7Y5Dps+u1cDpoM2ExyAYA== 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:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=p9r2ao I50sZJc8ukvmOkx3eV3iBfi8bHCYUfnOJsgX4=; b=OpOfVBMCsnFKG7ZI5sx5Wk 13PH8Q4iFBiyGsCEWGWvQ4gdpwVoJSgc24PQBy+CNq8IpswZCib+Ce9DVQuywDvh R0oDd2Aw4o/zsLQASYhTrqg5y6WA5ji092MafOFYCUj1aicjkIdvyA6LbsLmlld3 5aRk5rRPkyZZ5GODFymTge3Pd8A5NkFPMLX7kuCevA7jwsqvNRDathS7EuHWN7kI rRmpjyhpSxHwi6/IZcECQsSRZ4O6NQnc3UjKU8zTJLYS8Zz7hmNxn9lNmFKP7BPR R42l9qiupfq5gKGyJVuW0U/PMyemEWPM8YvCu/n0lg9/qsrmO0QKv+Qw7vgEaPag == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrkeehgdduudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecu kfhppeeiuddrvdduhedrudefjedrudeivdenucfrrghrrghmpehmrghilhhfrhhomhepmh hitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 150C710310; Fri, 29 Mar 2019 04:09:35 -0400 (EDT) Date: Fri, 29 Mar 2019 17:09:27 +0900 From: Michael Paquier To: Peter Eisentraut Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: REINDEX CONCURRENTLY Message-ID: <20190329080927.GB1954@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3uo+9/B/ebqu+fSQ" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --3uo+9/B/ebqu+fSQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Peter, On Fri, Mar 29, 2019 at 07:26:53AM +0000, Peter Eisentraut wrote: > REINDEX CONCURRENTLY >=20 > This adds the CONCURRENTLY option to the REINDEX command. A REINDEX > CONCURRENTLY on a specific index creates a new index (like CREATE > INDEX CONCURRENTLY), then renames the old index away and the new index > in place and adjusts the dependencies, and then drops the old > index (like DROP INDEX CONCURRENTLY). The REINDEX command also has > the capability to run its other variants (TABLE, DATABASE) with the > CONCURRENTLY option (but not SYSTEM). >=20 > The reindexdb command gets the --concurrently option. A couple of buildfarm members using clang are not happy with this commit: REINDEX SCHEMA CONCURRENTLY schema_to_reindex; +WARNING: you don't own a lock of type ShareUpdateExclusiveLock For example longfin and dragonet: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Ddragonet&dt=3D201= 9-03-29%2007%3A28%3A01 https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dlongfin&dt=3D2019= -03-29%2007%3A29%3A04 I cannot dig into that myself now unfortunately.. -- Michael --3uo+9/B/ebqu+fSQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlyd0rcACgkQnvQgOdby QH27BRAAm2NK+8YXmOwN7RIIkQNMmj5vz2m2fKClb954I7zSBHvu/OCVr7AUqsZ7 eq4nKToItWDwST+4MnGnHbjEjJT+3dFiAHDHLEDylsO8yqxjFifmVbxD9Zz+mDZi +W7bKqlOlMwwXNu//Kb5nnF2x2sJXFmhU/lrVR5ABocMGehh8LtGukroWNtSUgMJ ABqmy5LZhxHFbR18cYV0obx+dNHSVeb4/GIb2h1p9/2N4rN1QUp9eqSfKbiOAyRp cv4Gv8wZWJjLp0qBxDbTDZTYJSJobSUiOH5Ou8vV1qt39GJFHyiJTVP4SIMitVvS EKKAY9E6H9jt8vt3tTgXBU2m3nCml7hj0KrM5Luo0EmgzMEk5gC1TtMA2MI0Okq/ rMvcQWRXDe1CyIv/nEPoF/XxkdGpjeeSftKxlbE0Qyh8+VflSYyIyLRHFgD6MAUM 0Q6bpcV4EV241mlF1844j/xwCYdTT237cPa3V9nhS15JxPmk2n8H/LoMLgSxHedW O0i8WaMc4xWCYXD3y5oC3eusQxzl9XxaHr2DmQ4U4EaEWgOGBHEDldrfTlli+B6u INwhmh1oRw4sMRHe97QlRG+Vcg8blOGp4IIath2ymjKRHjgL2wWJ1SV7ltPNJGTd zFNouuxWVTgKrJfYVWKMd5T5nhPUPXE679gmcguxH1jdFX3KXbw= =JMk5 -----END PGP SIGNATURE----- --3uo+9/B/ebqu+fSQ--