Re: xpath_array with namespaces support

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: xpath_array with namespaces support
Дата
Msg-id 200704041502.36946.peter_e@gmx.net
обсуждение исходный текст
Ответ на Re: xpath_array with namespaces support  (Bruce Momjian <bruce@momjian.us>)
Список 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 по дате отправления:

Предыдущее
От: Zoltan Boszormenyi
Дата:
Сообщение: Re: IDENTITY/GENERATED v36 Re: Final version of IDENTITY/GENERATED patch
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: xpath_array with namespaces support