| From: | Peter Eisentraut <peter_e(at)gmx(dot)net> | 
|---|---|
| To: | "Nikolay Samokhvalov" <nikolay(at)samokhvalov(dot)com> | 
| Cc: | pgsql-patches(at)postgresql(dot)org, "Bruce Momjian" <bruce(at)momjian(dot)us> | 
| Subject: | Re: xpath_array with namespaces support | 
| Date: | 2007-04-04 13:02:36 | 
| Message-ID: | 200704041502.36946.peter_e@gmx.net | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers 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/
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2007-04-04 13:04:15 | Re: xpath_array with namespaces support | 
| Previous Message | Zoltan Boszormenyi | 2007-04-04 12:44:50 | Re: IDENTITY/GENERATED v36 Re: Final version of IDENTITY/GENERATED patch | 
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2007-04-04 13:04:15 | Re: xpath_array with namespaces support | 
| Previous Message | Zoltan Boszormenyi | 2007-04-04 12:44:50 | Re: IDENTITY/GENERATED v36 Re: Final version of IDENTITY/GENERATED patch |