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 1irHrT-0005kx-Ek for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Jan 2020 08:47:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1irHrR-0004jv-VT for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Jan 2020 08:47: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 1irHrQ-0004jo-6Q for pgsql-bugs@lists.postgresql.org; Tue, 14 Jan 2020 08:47:41 +0000 Received: from [66.111.4.26] (helo=out2-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1irHrG-0008Eh-Ve for pgsql-bugs@lists.postgresql.org; Tue, 14 Jan 2020 08:47:39 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id A95F621F41; Tue, 14 Jan 2020 03:47:19 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 14 Jan 2020 03:47:19 -0500 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=fm3; bh=3iMFgJkhYOdI3xs/7jAYGEqP8lZ 2OqJGaVx/ufvRPJk=; b=P2SxxE8TKJ8skjQoLwq7bpMI2NFYM3WcgsnFJYlqSo0 9YWsY/P/C+RGMF4Qkq1uslX1pOc3cKkwXmLoiEpDmSetimnq/6ix0R01qIgutpWM D/iDwQBP6Ui6ybiK6/z905jX9eBlpGDZXMiMRnj5bMGVF9ErLBL8lLPzYqpRpDEy sHWxuhXA8YWrdrAgLQp3TkfldvaP6PHAdyVBgFxjZjBoYORQfKBISvKQhbddI34Q H2jDyUdJO/AELr/bhaEMxcKUQlx3rGPdIfLcUor67aYr0K80u1k8FrqYosMz4L3x Lp1+h9DdPnQPtaNNSjbt2kfx8nrD5GWUpySLJpb/FTw== 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=fm1; bh=3iMFgJ khYOdI3xs/7jAYGEqP8lZ2OqJGaVx/ufvRPJk=; b=RSBEEn+KDuNFO9HEU687ZJ OJHpLtH3lqb5yHIjlZzD+PssrkvWljlzhdWyHOkAFrnVhfdIkIadywF12HanP7m3 yfllkHUYHAopm3MlFqI74/DyW8m/BZeHkR9y+YjGehFGipqrGK2YuZbRHP5Bjn6/ F1DjBgnYnd9nX+9SSkRrxhTEJ+GwkCe6qQaL839U0RsMm9e4/JNTAsfFdeBi2AZ1 43paCHw/QSmKD8L/m1Sz8l2vK08oR3HOhVF3OARbg1BXEdr4oyPD2FSf9xERev66 k3Ka3V8dCUmpXjS7s+6/LVDJNKaSdJ0dXfpF4Rg8/LxEsncdkfkuGl/gRxJy7JKQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdejuddguddvvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdefhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghen ucfkphepudduuddruddtvddrudektddrudekheenucfrrghrrghmpehmrghilhhfrhhomh epmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 816A930602DB; Tue, 14 Jan 2020 03:47:17 -0500 (EST) Date: Tue, 14 Jan 2020 17:47:09 +0900 From: Michael Paquier To: Heikki Linnakangas Cc: Andres Freund , Tom Lane , Manuel Rigger , PostgreSQL mailing lists Subject: Re: REINDEX CONCURRENTLY unexpectedly fails Message-ID: <20200114084709.GI1515@paquier.xyz> References: <20191115032141.GH1849@paquier.xyz> <20191115080706.GI1849@paquier.xyz> <20191120013649.2xfr2dnznyjgluch@alap3.anarazel.de> <20191120035408.GA4243@paquier.xyz> <20191212213709.neopqccvdo724eha@alap3.anarazel.de> <20191213034536.GD1942@paquier.xyz> <20191223015956.GB34339@paquier.xyz> <8f0bde7b-2d96-fb5c-cd0e-553694c1d376@iki.fi> <20200108081930.GF3413@paquier.xyz> <20200109030619.GC2251@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="d6iqOn7HZPWKXx18" Content-Disposition: inline In-Reply-To: <20200109030619.GC2251@paquier.xyz> X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.26 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --d6iqOn7HZPWKXx18 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Heikki, On Thu, Jan 09, 2020 at 12:06:19PM +0900, Michael Paquier wrote: > As the patch has been heavily modified, I am switching it back to > "Needs Review" for now and I'd like to discuss more about the lock > upgrade risks, particularly if it is considered worth the effort for > temporary relations. Thoughts are welcome.=20 You are registered as a reviewer for this patch: https://commitfest.postgresql.org/26/2358/ Are you planning to look at it? Do you have some thoughts to share about what I wrote previously? Discarding the lock upgrade considerations is possible. Another approach would be, instead of ignoring CONCURRENTLY for temporary tables, to fail if the operation is run, and ignore these when a dabatase-wide reindex concurrently happens. This was not liked much at the beginning of the thread though. -- Michael --d6iqOn7HZPWKXx18 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl4dgAwACgkQnvQgOdby QH3Vug//U4FXvgk7gxDOu+TVnlpwgMasc6ohNIsvCwyZ13Lggzo4a8D7+BlUL4T5 yzGWYcoYHeIcIpp9iXi7iWLGi278O0b5LA4lQT39/rug2RSsvb/rdA52t+NZau+y xlb0N+cF7m55Ah0GBXx9bT+r7MF1wXjZfrCsn6pMELWJ6sr45olIg9VOrvz7iyBN p7d7IhhLfJH6llh7ZqCrLuffLj4c8fVPKvq0fAhnkVovb7e8MtPc1YyIxlJBRbNI E38P2231CHGz51PqCNPo8mzVdXg56897a3Nk0ClWwQu6exl3fXxJbkn193ICprR4 5CVT3bKCxPGGI3Pz0AyadA99I2WfsgwjmMW2ja7wyPSduuWHID7HZYVfq4gr4tJw RPTQvqDv1iU5ddrVBF9jwuf3mYNM8kfYuK7835k5K2uLziTiBYS0HA4gY8ya9bF8 i3qkvlNZtR5RJtSa6hw9i+tBKD86DCfBI/43W9GUegUgmRHl3gLpqpi6Ut4Gr9DJ 0ruqoy9bfpd54YtxfdT1BGenN451n22l+SFJfr2H1l9akGstnjY/7C23qWVNwePc uA5RG+BTYVai/+Q8E3kQ25ashAuIJnLcNPb7m9k7amCPvOWYp+c1hld617w48es+ O4ihl42eEmm0PEB+t3etXkPJJTLx81dOT+3vC2UqKOujcDRmUgw= =IqqR -----END PGP SIGNATURE----- --d6iqOn7HZPWKXx18--