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 1oj3Sb-0003X6-8x for pgsql-general@arkaria.postgresql.org; Thu, 13 Oct 2022 19:01:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oj3Sa-0001qk-3r for pgsql-general@arkaria.postgresql.org; Thu, 13 Oct 2022 19:01:36 +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 1oj3SZ-0001qa-Q0 for pgsql-general@lists.postgresql.org; Thu, 13 Oct 2022 19:01:35 +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 1oj3SX-0000CQ-Lb for pgsql-general@postgresql.org; Thu, 13 Oct 2022 19:01:34 +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 29DJ1PDG1063098; Thu, 13 Oct 2022 15:01:25 -0400 From: Tom Lane To: Thomas Kellerer cc: Postgres General Subject: Re: pg_upgrade to 15 fails on Windows because of xml_is_well_formed() In-reply-to: References: Comments: In-reply-to Thomas Kellerer message dated "Thu, 13 Oct 2022 20:54:23 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1063096.1665687685.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 13 Oct 2022 15:01:25 -0400 Message-ID: <1063097.1665687685@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Kellerer writes: > When trying pg_upgrade to upgrade Postgres 14 to 15 on Windows 10 this f= ails with: > pg_restore: error: could not execute query: ERROR: could not find funct= ion "xml_is_well_formed" in file "c:/Program Files/PostgreSQL/15/lib/pgxml= .dll" > I don't understand why this functions is included in the dump in the fir= st place. Indeed. No such function should be present in any version of contrib/xml2 that was ever converted to extension style. Have you never done that in this DB? regards, tom lane