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 1hMD1K-0006qk-N2 for pgsql-hackers@arkaria.postgresql.org; Thu, 02 May 2019 14:49:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hMD1J-00015s-26 for pgsql-hackers@arkaria.postgresql.org; Thu, 02 May 2019 14:49:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMD1I-00015l-Py for pgsql-hackers@lists.postgresql.org; Thu, 02 May 2019 14:49:08 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMD1G-0007Jw-MU for pgsql-hackers@lists.postgresql.org; Thu, 02 May 2019 14:49:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x42En0JQ025662; Thu, 2 May 2019 10:49:00 -0400 From: Tom Lane To: Andres Freund cc: Michael Paquier , Postgres hackers Subject: Re: REINDEX INDEX results in a crash for an index of pg_class since 9.6 In-reply-to: <20190502021913.axyvyyyw5547swy5@alap3.anarazel.de> References: <28926.1556664156@sss.pgh.pa.us> <20190430225307.lvfvcf2776iywhw4@alap3.anarazel.de> <20190501013638.7u7fwr4zktbyyng5@alap3.anarazel.de> <25049.1556727622@sss.pgh.pa.us> <20190501170603.hx6r3ztyvi3rlgq6@alap3.anarazel.de> <20190501172115.4cvz3rp6np43odut@alap3.anarazel.de> <5483.1556737736@sss.pgh.pa.us> <16043.1556754084@sss.pgh.pa.us> <20190502012520.eyfhhn5ix2ooflys@alap3.anarazel.de> <27459.1556762513@sss.pgh.pa.us> <20190502021913.axyvyyyw5547swy5@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Wed, 01 May 2019 19:19:13 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25660.1556808540.1@sss.pgh.pa.us> Date: Thu, 02 May 2019 10:49:00 -0400 Message-ID: <25661.1556808540@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2019-05-01 22:01:53 -0400, Tom Lane wrote: >> I think that argument is pretty pointless considering that "REINDEX TABLE >> pg_class" does it this way, and that code is nearly old enough to >> vote. > IMO the reindex_relation() case isn't comparable. IMV it's the exact same case: we need to perform a pg_class update while one or more of pg_class's indexes shouldn't be touched. I am kind of wondering why it didn't seem to be necessary to cover this for REINDEX INDEX back in 2003, but it clearly is necessary now. > That's not pretty either :( So, I don't like your patch, you don't like mine. Anybody else want to weigh in? We do not have the luxury of time to argue about this. If we commit something today, we *might* get a useful set of CLOBBER_CACHE_ALWAYS results for all branches by Sunday. Those regression tests will have to come out of the back branches on Sunday, because we are not shipping minor releases with unstable regression tests, and I've heard no proposal for avoiding the occasional-deadlock problem. regards, tom lane