Don't mangle xml and xpath unless xml is not in fact a well-formed document, in xpath(). If mangling xpath, make a saner attempt where xpath expression does not begin with '/'.

Andrew Dunstan <andrew@dunslane.net>

Commit: 69daf2defeb48e26a96bd4eeeecad0f9404fd97c
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2009-02-28T19:13:28Z
Releases: 8.3.7
Don't mangle xml and xpath unless xml is not in fact a well-formed document, in xpath(). If mangling xpath, make a saner attempt where xpath expression does not begin with '/'.

Files

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