XMLTABLE default namespace in docs
When reviewing Pavels patch for default namespace in XMLTABLE, I came across
this sentence in the devel (and 10beta) docs in subsection 9.14.3.3. xmltable:
The following example illustrates how the XMLNAMESPACES clause can be
used to specify the default namespace, and a list of additional
namespaces used in the XML document as well as in the XPath
expressions:
That seems odd since we don’t support default namespaces (hence the patch for
adding it). Am I reading it wrong, or shouldn’t we apply something like the
attached for now?
cheers ./daniel
Attachments:
xmltable-def-ns.patchapplication/octet-stream; name=xmltable-def-ns.patchDownload+1-2
On 2017-Sep-11, Daniel Gustafsson wrote:
When reviewing Pavels patch for default namespace in XMLTABLE, I came across
this sentence in the devel (and 10beta) docs in subsection 9.14.3.3. xmltable:The following example illustrates how the XMLNAMESPACES clause can be
used to specify the default namespace, and a list of additional
namespaces used in the XML document as well as in the XPath
expressions:That seems odd since we don’t support default namespaces (hence the patch for
adding it). Am I reading it wrong, or shouldn’t we apply something like the
attached for now?
You're right, we should -- thanks for noticing. I have pushed it now.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services