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 1hLbSc-00052H-NC for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Apr 2019 22:42:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hLbSb-0006Om-4r for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Apr 2019 22:42:49 +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 1hLbSa-0006Oe-1A for pgsql-hackers@lists.postgresql.org; Tue, 30 Apr 2019 22:42:48 +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 1hLbST-0003vg-F0 for pgsql-hackers@lists.postgresql.org; Tue, 30 Apr 2019 22:42:46 +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 x3UMga0r028927; Tue, 30 Apr 2019 18:42:36 -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: <28313.1556663080@sss.pgh.pa.us> References: <26528.1556599820@sss.pgh.pa.us> <20190430070552.jzqgcy4ihalx7nur@alap3.anarazel.de> <30579.1556639470@sss.pgh.pa.us> <20190430173457.pg6i6urvevse5jer@alap3.anarazel.de> <29546.1556647550@sss.pgh.pa.us> <20190430182741.s6o7mo5ebmgxxi5x@alap3.anarazel.de> <16277.1556649660@sss.pgh.pa.us> <20190430190308.kga2z5oz7vab7w22@alap3.anarazel.de> <17996.1556651503@sss.pgh.pa.us> <20190430221045.6slpi2vm2noda5jb@alap3.anarazel.de> <28313.1556663080@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Tue, 30 Apr 2019 18:24:40 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28925.1556664156.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 30 Apr 2019 18:42:36 -0400 Message-ID: <28926.1556664156@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Just when you thought it was safe to go back in the water ... markhor just reported in with results showing that we have worse problems than deadlock-prone tests in the back branches: 9.4 for example looks like -- -- whole tables REINDEX TABLE pg_class; -- mapped, non-shared, critical + ERROR: could not read block 0 in file "base/16384/27769": read only 0 o= f 8192 bytes REINDEX TABLE pg_index; -- non-mapped, non-shared, critical + ERROR: could not read block 0 in file "base/16384/27769": read only 0 o= f 8192 bytes REINDEX TABLE pg_operator; -- non-mapped, non-shared, critical + ERROR: could not read block 0 in file "base/16384/27769": read only 0 o= f 8192 bytes REINDEX TABLE pg_database; -- mapped, shared, critical + ERROR: could not read block 0 in file "base/16384/27769": read only 0 o= f 8192 bytes REINDEX TABLE pg_shdescription; -- mapped, shared non-critical + ERROR: could not read block 0 in file "base/16384/27769": read only 0 o= f 8192 bytes -- Check that individual system indexes can be reindexed. That's a bit -- different from the entire-table case because reindex_relation -- treats e.g. pg_class special. REINDEX INDEX pg_class_oid_index; -- mapped, non-shared, critical + ERROR: could not read block 0 in file "base/16384/27769": read only 0 o= f 8192 bytes REINDEX INDEX pg_class_relname_nsp_index; -- mapped, non-shared, non-cri= tical + ERROR: could not read block 0 in file "base/16384/27769": read only 0 o= f 8192 bytes REINDEX INDEX pg_index_indexrelid_index; -- non-mapped, non-shared, crit= ical + ERROR: could not read block 0 in file "base/16384/27769": read only 0 o= f 8192 bytes REINDEX INDEX pg_index_indrelid_index; -- non-mapped, non-shared, non-cr= itical + ERROR: could not read block 0 in file "base/16384/27769": read only 0 o= f 8192 bytes REINDEX INDEX pg_database_oid_index; -- mapped, shared, critical + ERROR: could not read block 0 in file "base/16384/27769": read only 0 o= f 8192 bytes REINDEX INDEX pg_shdescription_o_c_index; -- mapped, shared, non-critica= l + ERROR: could not read block 0 in file "base/16384/27769": read only 0 o= f 8192 bytes No doubt this is triggered by CLOBBER_CACHE_ALWAYS. Given this, I'm rethinking my position that we can dispense with these test cases. Let's try putting them in a standalone test script, and see whether that leads to failures or not. Even if it does, we'd better keep them until we've got a fully clean bill of health from the buildfarm. regards, tom lane