Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kO13Y-0005iz-Jl for pgsql-general@arkaria.postgresql.org; Thu, 01 Oct 2020 16:03:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kO13W-0001Sm-Dh for pgsql-general@arkaria.postgresql.org; Thu, 01 Oct 2020 16:03:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kO13V-0001Sf-29 for pgsql-general@lists.postgresql.org; Thu, 01 Oct 2020 16:03:42 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kO13Q-0002XA-Uf for pgsql-general@postgresql.org; Thu, 01 Oct 2020 16:03:40 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id ED1715C013B; Thu, 1 Oct 2020 12:03:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 01 Oct 2020 12:03:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=X G7JFvQHvxZwcFsYf1WU32IfTFihYo0WAg10GgeD7tA=; b=Dn7ZEtziWq5FC6RuM 16zhwTdfz8+xETPcu2Rmh4DXLixxlNmjzWdNWL7kASWzwR2Ozigp3bvLi5d6UGP+ T5BtGyDyDRx4CMs4foAGHJfe+0rLMgw748XxkqTgbvf6M8mf2OZ2vJhM1qWWimq4 8S2B774qswzgLxVMFuAcG5KxkyGZTbDAqhLP4A2rccOcEwN+KRM+qMUWlWOgtF3Y 5FZZDyyketl94l7dyczTMNTZPQdpC0clZXHclbwz7nKLqNl/s763HewLCPAmbBGs PCe5TYlMIEz+V4xne1qYJZUnDfY5boj7xLoh3nsX+VkzknPoAkSkjz8KL4A12p7O s82Wg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=XG7JFvQHvxZwcFsYf1WU32IfTFihYo0WAg10GgeD7 tA=; b=GNvaZbp8fHRVGAWQ6Mwf4J1FRC1UN3LWPSrJcqjXjJgg9p8ZuXdn+8pHf O9Ob/+HctdMyYUAZLh9MaWzyuVynO2O8VmXEtGaJkebUfx8tOdmNR741InToflqN 8jBws4bc6EkjthnnPxa2N8V4hhveo6JkdNs7USvY2dEcm5uBhk4WpUss29Ls6SQX y5/9gKOYLEgIAwN5/LPsR8oCe9jUX/e81DaEh17gHeMU+JzCOUxA42Zs2c14WF1X CUkTP0W2cH3uxYO9rHpg7tvgB8pNZGmCCf1I9HbpW4qbfWx6At13pJ8/ty0594Gn eGD/VBdq/EA4CPNkzwhzqGkTGBZXA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrfeeggdelkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepveevfeevfeeugeffkeekhfegieeufffgteeujedvgffh ueejjefhkeejleegtdegnecukfhppeejhedrudejvddrhedrvdefudenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghv vghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id B2F693280064; Thu, 1 Oct 2020 12:03:32 -0400 (EDT) Subject: Re: pg_upgrade issue upgrading 10 -> 13 To: Sean Brown , pgsql-general@postgresql.org References: <918798A5-7ADF-4252-A2BF-E5639F45EC15@saminds.com> From: Adrian Klaver Message-ID: Date: Thu, 1 Oct 2020 09:03:31 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <918798A5-7ADF-4252-A2BF-E5639F45EC15@saminds.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/1/20 7:51 AM, Sean Brown wrote: > I’m having a little problem using pg_upgrade to move from 10 to 13, I’m assuming the issue is related to the removal of pg_pltemplate, but I can’t find anything related to how to handle it. > > pg_upgrade —check reports that the clusters are compatible, but the actual upgrade fails starting the new cluster with - > > ERROR: relation “pg_catalog.pg_pltemplate” does not exist > STATEMENT: GRANT SELECT ON TABLE “pg_catalog"."pg_pltemplate” TO "appuser”; Which points to the dangers of doing things to the system tables. They can change/disappear between major versions. > > Is there a way to deal with this that doesn’t include dropping the source table? > -- Adrian Klaver adrian.klaver@aklaver.com