But isn't the libxml2 library not sufficient for this purpose? Note that I have not tried it yet, I am still just investigating possible solutions.
Unfortunately, no, or it is not about Postgres. The development of libxml2 is frozen :-/ and there are only bugfix releases. What I know, there are only some experimental enhancements, but nobody has finalized it.
Garfield Lewis <garfield.lewis@lzlabs.com> writes: > I am investigating whether there are any plans to have XPath 2.0 support for Postgres XML natively or are there any available extension packages that includes this support?
I don't know of anyone actively working on that. The difficulty is that we don't especially want to write/maintain such logic ourselves, but there don't seem to be any suitable libraries available that (a) can be called from C and (b) have a compatible license.