Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1svgN8-00Gqzt-6X for pgsql-general@arkaria.postgresql.org; Tue, 01 Oct 2024 17:09:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1svgN5-002M3h-Hs for pgsql-general@arkaria.postgresql.org; Tue, 01 Oct 2024 17:09:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1svgN5-002M3G-0f for pgsql-general@lists.postgresql.org; Tue, 01 Oct 2024 17:09:11 +0000 Received: from omta001.cacentral1.a.cloudfilter.net ([3.97.99.32]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1svgMw-001zKT-Du for pgsql-general@postgresql.org; Tue, 01 Oct 2024 17:09:08 +0000 Received: from shw-obgw-4003a.ext.cloudfilter.net ([10.228.9.183]) by cmsmtp with ESMTPS id vd3esuBeX9TOUvgMusfTeQ; Tue, 01 Oct 2024 17:09:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20231031; t=1727802540; bh=wFwcAfUZp36c6LO5visg3iDXIbSf7jLF2l1HA6fUhSg=; h=Message-ID:Date:From:Subject:To; b=tlmcX+cHja8B7l7Eb5LpiXjfNn2HcTHTp0SVnB67dfvib6N9CyEEAHAwrwrDFO2q0 Ycw7YN25hoLdB9TU8BRIvUaB46HK447lBBkM5trAxxr4uTvLi8Z0lTjJutMAJ0wFqc QWTryDQD4D3eAcGkpgIM+cG4vzxrhPf1z0ICbry0UfEFbqyeF7LC8uN4P2QXWifpy8 40Fvy5Ev/W7sDutOiL4JlRmnObJJaYfyWy4CzgcwPdpoR3rafPXTUfmPKDJyI4XRwO Xi46rb8qKgxg2Mf0F8RYo5OUCZ4nitJ2UsaEUrY0Uz+iutEJJsj++egCVnxLHwhrvB BOOLhsB8uCeXA== Received: from [192.168.2.11] ([142.161.62.170]) by cmsmtp with ESMTPSA id vgMtsPqjHE0IVvgMusVWqd; Tue, 01 Oct 2024 17:09:00 +0000 Authentication-Results: ; auth=pass (PLAIN) smtp.auth=gweaver@shaw.ca X-Auth-User: gweaver X-Authority-Analysis: v=2.4 cv=cI9DsUeN c=1 sm=1 tr=0 ts=66fc2cac a=ZMt2Fn/+eO0oV/ZMl6lE+Q==:117 a=ZMt2Fn/+eO0oV/ZMl6lE+Q==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=epTmVMiNAAAA:8 a=ghN99Dw7-qJ6cCzqwsoA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=dgsGoRRNJ5AA:10 a=mYLgnjqZPkkA:10 a=W9OEuuO0BoptF8dp4RIA:9 a=CKBJZjVi-y2AVpHd:21 a=_W_S_7VecoQA:10 Content-Type: multipart/alternative; boundary="------------sytjjMgqS7EOMDhiY7cbDeES" Message-ID: Date: Tue, 1 Oct 2024 12:08:58 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: George Weaver Subject: How to handle "could not find function xml_is_well_formed" when restoring database in Version 17 To: "pgsql-general@postgresql.org" Content-Language: en-US Organization: Cleartag Software, Inc. X-CMAE-Envelope: MS4xfEnYtitfpBYptgU6X9xnR7f3tg/xQ5H4vMNpBNflgwDhTROx+srvQKKR6dv/Eca35V+YbH8iIvvt7Jv/8lUwnl7zxUFL/BaFyP2N7B8q5eK+DUtwQpKF /6+fNzNAflCFWzsQcqFSlwi/TORat+3HKknm0NV9EQ98m6P4IUlHRQtxQwMsxWNVlBF7W9Ku4pqz9FKgv9XOZllrffDbgyLUIVQ= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------sytjjMgqS7EOMDhiY7cbDeES Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Good afternoon, I am testing upgrading from Version 13 to Version 17.  I am getting the following error when trying to restore a database in Version 17 (the database was backed up from Version 13 using the Version 17 pg_dump): pg_Restore: error: could not execute query: ERROR:  could not find function "xml_is_well_formed" in file "C:/Program Files/PostgreSQL/17/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 only reference I can find to xml_is_well_formed in the Release Notes (Version 15) is: Remove xml2 's |xml_is_well_formed()| function (Tom Lane) This function has been implemented in the core backend since Postgres 9.1 How do I address this in restoring the backup to 17? Thanks, George --------------sytjjMgqS7EOMDhiY7cbDeES Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Good afternoon,

I am testing upgrading from Version 13 to Version 17.  I am getting the following error when trying to restore a database in Version 17 (the database was backed up from Version 13 using the Version 17 pg_dump):

pg_Restore: error: could not execute query: ERROR:  could not find function "xml_is_well_formed" in file "C:/Program Files/PostgreSQL/17/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 only reference I can find to xml_is_well_formed in the Release Notes (Version 15) is:        

Remove xml2's xml_is_well_formed() function (Tom Lane)

This function has been implemented in the core backend since Postgres 9.1

How do I address this in restoring the backup to 17?

Thanks,

George



   

--------------sytjjMgqS7EOMDhiY7cbDeES--