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 1hO1QJ-0006Zl-UA for pgsql-hackers@arkaria.postgresql.org; Tue, 07 May 2019 14:50:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hO1QI-0007Lf-BA for pgsql-hackers@arkaria.postgresql.org; Tue, 07 May 2019 14:50:26 +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 1hO1QH-0007LH-VH for pgsql-hackers@lists.postgresql.org; Tue, 07 May 2019 14:50:26 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hO1QF-0005ET-RE for pgsql-hackers@lists.postgresql.org; Tue, 07 May 2019 14:50:24 +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 x47EoJ3u028031; Tue, 7 May 2019 10:50:19 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@lists.postgresql.org, Michael Paquier Subject: Re: REINDEX INDEX results in a crash for an index of pg_class since 9.6 In-reply-to: <20190506070105.2jo5f4vah5mo32m2@alap3.anarazel.de> References: <20190502172851.klckhiyukqd3bd2t@alap3.anarazel.de> <10650.1556830451@sss.pgh.pa.us> <20190502210253.lt4p46dvllxarajg@alap3.anarazel.de> <17927.1556839099@sss.pgh.pa.us> <20190504130637.GA5975@paquier.xyz> <4622.1556982247@sss.pgh.pa.us> <20190505184816.p7nweo6bnh76k5ev@alap3.anarazel.de> <1105.1557115018@sss.pgh.pa.us> <037F6AFC-73CC-41B3-A0F0-75AF5AE06372@anarazel.de> <1236.1557115204@sss.pgh.pa.us> <20190506070105.2jo5f4vah5mo32m2@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 06 May 2019 00:01:05 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28029.1557240619.1@sss.pgh.pa.us> Date: Tue, 07 May 2019 10:50:19 -0400 Message-ID: <28030.1557240619@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > I for sure thought I earlier had an idea that'd actually work. But > either I've lost it, or it didn't actually work. But perhaps somebody > else can come up with something based on the above strawman ideas? Both of those ideas fail if an autovacuum starts up after you're done looking. I still think the only way you could make this reliable enough for the buildfarm is to do it in a TAP test that's set up a cluster with autovacuum disabled. Whether it's worth the cycles to do so is pretty unclear, since that wouldn't be a terribly real-world test environment. (I also wonder whether the existing TAP tests for reindexdb don't provide largely the same coverage.) My advice is to let it go until we have time to work on getting rid of the deadlock issues. If we're successful at that, it might be possible to re-enable these tests in the regular regression environment. regards, tom lane