postgres/contrib/xml2
Michael Paquier 8aa54aa7ee Fix incompatibility with libxml2 >= 2.14
libxml2 has deprecated the members of xmlBuffer, and it is recommended
to access them with dedicated routines.  We have only one case in the
tree where this shows an impact: xml2/xpath.c where "content" was
getting directly accessed.  The rest of the code looked fine, checking
the PostgreSQL code with libxml2 close to the top of its "2.14" branch.

xmlBufferContent() exists since year 2000 based on a check of the
upstream libxml2 tree, so let's switch to it.

Like 400928b83b, backpatch all the way down as this can have an impact
on all the branches already released once newer versions of libxml2 get
more popular.

Reported-by: Walid Ibrahim <walidib@amazon.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/aGdSdcR4QTjEHX6s@paquier.xyz
Backpatch-through: 13
2025-07-07 08:53:57 +09:00
..
expected xml2: Add tests for functions xpath_nodeset() and xpath_list() 2024-11-14 13:10:36 +09:00
sql xml2: Add tests for functions xpath_nodeset() and xpath_list() 2024-11-14 13:10:36 +09:00
.gitignore
Makefile contrib/xml2: Use SQL-standard function bodies. 2024-12-29 13:53:00 -05:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
xml2--1.1--1.2.sql contrib/xml2: Use SQL-standard function bodies. 2024-12-29 13:53:00 -05:00
xml2--1.1.sql Update xml2 extension for parallel query. 2016-06-14 15:49:32 -04:00
xml2--1.0--1.1.sql Update xml2 extension for parallel query. 2016-06-14 15:49:32 -04:00
xml2.control contrib/xml2: Use SQL-standard function bodies. 2024-12-29 13:53:00 -05:00
xpath.c Fix incompatibility with libxml2 >= 2.14 2025-07-07 08:53:57 +09:00
xslt_proc.c xml2: Improve error handling of libxml2 calls 2025-07-01 15:48:32 +09:00