Fix XMLTABLE on older libxml2

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: a9f66f92533b2bfd7abf289219152091b7697e87
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2017-03-08T16:29:48Z
Releases: 10.0
Fix XMLTABLE on older libxml2

libxml2 older than 2.9.1 does not have xmlXPathSetContextNode (released
in 2013, so reasonable platforms have trouble).  That function is fairly
trivial, so I have inlined it in the one added caller.  This passes
tests on my machine; let's see what the buildfarm thinks about it.

Per joint complaint from Tom Lane and buildfarm.

Files

PathChange+/−
src/backend/utils/adt/xml.c modified +1 −1