Thread: [DOCS] XMLTABLE default namespace in docs

[DOCS] XMLTABLE default namespace in docs

From
Daniel Gustafsson
Date:
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


-- 
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs

Attachment

Re: [DOCS] XMLTABLE default namespace in docs

From
Alvaro Herrera
Date:
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