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 1ewF0x-0007Jw-PM for pgsql-committers@arkaria.postgresql.org; Wed, 14 Mar 2018 22:36:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ewF0w-0001w7-MA for pgsql-committers@arkaria.postgresql.org; Wed, 14 Mar 2018 22:36:54 +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 1ewF0w-0001vx-Dr for pgsql-committers@lists.postgresql.org; Wed, 14 Mar 2018 22:36:54 +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 1ewF0t-0003R3-Of for pgsql-committers@postgresql.org; Wed, 14 Mar 2018 22:36:53 +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 w2EMahIm001453; Wed, 14 Mar 2018 18:36:43 -0400 From: Tom Lane To: Andrew Dunstan cc: Andres Freund , Peter Eisentraut , pgsql-committers@postgresql.org Subject: Re: pgsql: Remove pg_class.relhaspkey In-reply-to: References: <20180314211344.3x2bhr7bmqmtvor6@alap3.anarazel.de> Comments: In-reply-to Andrew Dunstan message dated "Thu, 15 Mar 2018 09:00:08 +1030" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1451.1521067003.1@sss.pgh.pa.us> Date: Wed, 14 Mar 2018 18:36:43 -0400 Message-ID: <1452.1521067003@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Dunstan writes: > Basing an MV on pg_class could always be difficult for pg_upgrade. Maybe > that's not a brilliant thing to do in a test (or maybe the test should drop > the MV after it's done). OH. Is that what it's doing? The cause of the failure is immediately obvious then. pg_class now lacks a relhaspkey column, but the matview is still dependent on one being there. I concur that this is not well-considered test design. regards, tom lane