pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <shammat@gmx.net>
To: Postgres General <pgsql-general@postgresql.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: pg_upgrade to 15 fails on Windows because of xml_is_well_formed()
Date: Thu, 13 Oct 2022 21:45:16 +0200
Message-ID: <1ad087a6-30aa-3371-e417-2b47956c6986@gmx.net> (raw)
In-Reply-To: <1063097.1665687685@sss.pgh.pa.us>
References: <a852238f-fb04-e158-8a94-a044faec70ef@gmx.net>
	<1063097.1665687685@sss.pgh.pa.us>

Tom Lane schrieb am 13.10.2022 um 21:01:
>> When trying pg_upgrade to upgrade Postgres 14 to 15 on Windows 10 this fails with:
>> pg_restore: error: could not execute query: ERROR:  could not find function "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 first 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?

Hmm, the xml2 extension is not installed in any of those databases.

Most databases were probably migrated over time from 8.4
and I can't rule out that I did install xml2 there at some time
in the past.

I checked pg_proc and it the function was there twice: one in pg_catalog
and one in the public schema.

After manually dropping the function from the public schema, pg_upgrade went through.

It's probably not worth investigating how it got there.

I tried to create and drop the xml2 extension to see if that maybe leaves
the "orphaned" function in the public schema, but I couldn't reproduce it.

Regards
Thomas







view thread (4+ messages)  latest in thread

Message-ID: <1ad087a6-30aa-3371-e417-2b47956c6986@gmx.net>
Permalink:  ../1ad087a6-30aa-3371-e417-2b47956c6986@gmx.net/
Also on:    postgresql.org/message-id/1ad087a6-30aa-3371-e417-2b47956c6986@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: shammat@gmx.net, tgl@sss.pgh.pa.us
  Subject: Re: pg_upgrade to 15 fails on Windows because of xml_is_well_formed()
  In-Reply-To: <1ad087a6-30aa-3371-e417-2b47956c6986@gmx.net>
  References: <a852238f-fb04-e158-8a94-a044faec70ef@gmx.net> <1063097.1665687685@sss.pgh.pa.us> <1ad087a6-30aa-3371-e417-2b47956c6986@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox