Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f3vZc-0008Tz-7A for pgsql-committers@arkaria.postgresql.org; Thu, 05 Apr 2018 03:28: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 1f3vZa-0001HD-NB for pgsql-committers@arkaria.postgresql.org; Thu, 05 Apr 2018 03:28:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f3vZa-0001H4-EZ for pgsql-committers@lists.postgresql.org; Thu, 05 Apr 2018 03:28: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_SHA384:256) (Exim 4.89) (envelope-from ) id 1f3vZX-0000qP-JM for pgsql-committers@lists.postgresql.org; Thu, 05 Apr 2018 03:28:25 +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 w353SK07008441; Wed, 4 Apr 2018 23:28:21 -0400 From: Tom Lane To: Peter Geoghegan cc: Alexander Korotkov , Teodor Sigaev , pgsql-committers Subject: Re: pgsql: Skip full index scan during cleanup of B-tree indexes when possi In-reply-to: References: <2155.1522889894@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Wed, 04 Apr 2018 19:52:26 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8439.1522898900.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 04 Apr 2018 23:28:20 -0400 Message-ID: <8440.1522898900@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Geoghegan writes: >>> TRAP: FailedAssertion("!(metad->btm_version =3D=3D 3)", File: >>> "/home/pg/postgresql/root/build/../source/src/backend/access/nbtree/nb= tpage.c", >>> Line: 619) >> Hm, buildfarm's not complaining --- what's the test case? > This was discovered while testing/reviewing the latest version of the > INCLUDE covering indexes patch. It now seems to be unrelated. Oh, wait ... I wonder if you saw that because you were running a new backend without having re-initdb'd? Once you had re-initdb'd, then of course there would be no old-format btree indexes anywhere. But if you hadn't, then anyplace that was not prepared to cope with the old header format would complain about pre-existing indexes. In short, this sounds like a place that did not get the memo about how to cope with un-upgraded indexes. regards, tom lane