Re: xpath_array with namespaces support - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: xpath_array with namespaces support
Date
Msg-id 200704041502.36946.peter_e@gmx.net
Whole thread Raw
In response to Re: xpath_array with namespaces support  (Bruce Momjian <bruce@momjian.us>)
List pgsql-patches
Am Mittwoch, 4. April 2007 14:42 schrieb Nikolay Samokhvalov:
> Maybe it's worth to start keeping additional information in xml datum (i.e.
> bit IS_DOCUMENT and, what is more important for xpath() function, a bit
> indicating that XML value has only one root and can be considered as a tree
> => there is no need to wrap with <x> .. </x>).  But this change requires
> additional time to design xml datum structure and to rework the code
> (macros, I/O functions...).

To determine if an XML datum is a document, call xml_is_document().  The
implementation of that function is probably not the best possible one, but
what the xpath() code does it totally wrong nevertheless.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

pgsql-patches by date:

Previous
From: Zoltan Boszormenyi
Date:
Subject: Re: IDENTITY/GENERATED v36 Re: Final version of IDENTITY/GENERATED patch
Next
From: Peter Eisentraut
Date:
Subject: Re: xpath_array with namespaces support