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>
Subject: pg_upgrade to 15 fails on Windows because of xml_is_well_formed()
Date: Thu, 13 Oct 2022 20:54:23 +0200
Message-ID: <a852238f-fb04-e158-8a94-a044faec70ef@gmx.net> (raw)

When trying pg_upgrade to upgrade Postgres 14 to 15 on Windows 10 this fails with:

pg_restore: creating FUNCTION "public.xml_is_well_formed("text")"
pg_restore: while PROCESSING TOC:
pg_restore: from TOC entry 647; 1255 23216 FUNCTION xml_is_well_formed("text") postgres
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"
Command was: CREATE FUNCTION "public"."xml_is_well_formed"("text") RETURNS boolean
     LANGUAGE "c" IMMUTABLE STRICT
     AS '$libdir/pgxml', 'xml_is_well_formed';

The same error occurs when trying pg_dump/pg_restore, but the restore continues without further errors and the database is usable after that.

I don't understand why this functions is included in the dump in the first place.
A pristine 15 cluster already contains that function.


Any ideas?
Thomas






view thread (4+ messages)  latest in thread

Message-ID: <a852238f-fb04-e158-8a94-a044faec70ef@gmx.net>
Permalink:  ../a852238f-fb04-e158-8a94-a044faec70ef@gmx.net/
Also on:    postgresql.org/message-id/a852238f-fb04-e158-8a94-a044faec70ef@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
  Subject: Re: pg_upgrade to 15 fails on Windows because of xml_is_well_formed()
  In-Reply-To: <a852238f-fb04-e158-8a94-a044faec70ef@gmx.net>
  References: <a852238f-fb04-e158-8a94-a044faec70ef@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