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 1lK0ZB-00032l-Pk for pgsql-bugs@arkaria.postgresql.org; Wed, 10 Mar 2021 15:16:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lK0ZA-0000Xe-Ky for pgsql-bugs@arkaria.postgresql.org; Wed, 10 Mar 2021 15:16:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lK0ZA-0000XQ-Er for pgsql-bugs@lists.postgresql.org; Wed, 10 Mar 2021 15:16:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lK0Z8-00043T-28 for pgsql-bugs@lists.postgresql.org; Wed, 10 Mar 2021 15:16:03 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 12AFG0ec2088848; Wed, 10 Mar 2021 10:16:01 -0500 From: Tom Lane To: =?iso-8859-1?Q?Marcus_M=FCller?= cc: pgsql-bugs@lists.postgresql.org Subject: Re: pg_upgrade from PostgreSQL 12.4 to PostgreSQL 13.2 on Windows 10 failes because of missing function pg_catalog.ascii_to_mic In-reply-to: <001101d7159a$91f9c0d0$b5ed4270$@schwarz-infosysteme.de> References: <001101d7159a$91f9c0d0$b5ed4270$@schwarz-infosysteme.de> Comments: In-reply-to =?iso-8859-1?Q?Marcus_M=FCller?= message dated "Wed, 10 Mar 2021 11:46:04 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2088846.1615389360.1@sss.pgh.pa.us> Date: Wed, 10 Mar 2021 10:16:00 -0500 Message-ID: <2088847.1615389360@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =?iso-8859-1?Q?Marcus_M=FCller?= writes: > pg_upgrade should actually correctly handle features that no longer exist in > a new version. This seems like a bug. > 2021-03-10 10:37:07.199 CET [18868] FEHLER: Funktion > pg_catalog.ascii_to_mic(integer, integer, cstring, internal, integer) > existiert nicht > 2021-03-10 10:37:07.199 CET [18868] ANWEISUNG: GRANT ALL ON FUNCTION > "pg_catalog"."ascii_to_mic"(integer, integer, "cstring", "internal", > integer) TO "wwsuser"; Yeah, that's a known issue, but fixing it is harder than you might think --- people have been poking at a fix for some time without success. There's no good place to locate knowledge about things having gone away. Since I can see no actual reason to grant nondefault permissions on an encoding conversion function, I'd suggest just revoking those in the source DB before upgrading. regards, tom lane