Re: [PATCH] contrib/xml2: backend crash in xpath_nodeset() on the namespace axis

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Andrey Chernyy <andrey.cherny@tantorlabs.com>
Cc: pgsql-bugs@lists.postgresql.org
Date: 2026-06-12T01:27:23Z
Lists: pgsql-bugs
On Fri, Jun 12, 2026 at 01:59:06AM +0300, Andrey Chernyy wrote:
> Thanks Michael, and thanks for adding the tests and back-patching! The
> grouped patch looks good to me - applying the same XML_NAMESPACE_DECL
> fallback to xmlXPathCastNodeToString() in core xml.c makes sense too. I
> had a regression test in progress, but glad it's already covered.

Both issues are now fixed and backpatched, as of 8bf257aebac1 and
9d33a5a804db.
--
Michael

Commits

  1. Fix handling of namespace nodes in xpath() (xml)

  2. xml2: Fix crash with namespace nodes in xpath_nodeset()