Re: How to handle "could not find function xml_is_well_formed" when restoring database in Version 17

Adrian Klaver <adrian.klaver@aklaver.com>

From: Adrian Klaver <adrian.klaver@aklaver.com>
To: George Weaver <gweaver@shaw.ca>, "pgsql-general@postgresql.org" <pgsql-general@postgresql.org>
Date: 2024-10-03T15:31:53Z
Lists: pgsql-general
On 10/3/24 08:20, George Weaver wrote:
> Thanks Tom and Christoph,
> 
> Got it!
> 
> The function xml_valid is also gone.  Does xml_is_well_formed accomplish 
> the same objective?

Gone from where?

https://www.postgresql.org/docs/17/xml2.html

xml_valid ( document text ) → boolean

Parses the given document and returns true if the document is 
well-formed XML. (Note: this is an alias for the standard PostgreSQL 
function xml_is_well_formed(). The name xml_valid() is technically 
incorrect since validity and well-formedness have different meanings in 
XML.)

> 
> Thanks,
> 
> George

-- 
Adrian Klaver
adrian.klaver@aklaver.com