Re: --enable-xml instead of --with-libxml?

Поиск
Список
Период
Сортировка
Искать

Re: --enable-xml instead of --with-libxml?

От:
Alvaro Herrera <alvherre@commandprompt.com>
Дата:

Re: --enable-xml instead of --with-libxml?

От:
Peter Eisentraut <peter_e@gmx.net>
Дата:

Re: --enable-xml instead of --with-libxml?

От:
Peter Eisentraut <peter_e@gmx.net>
Дата:

Re: --enable-xml instead of --with-libxml?

От:
Bruce Momjian <bruce@momjian.us>
Дата:

Re: --enable-xml instead of --with-libxml?

От:
Bruce Momjian <bruce@momjian.us>
Дата:

--enable-xml instead of --with-libxml?

От:
"Nikolay Samokhvalov" <samokhvalov@gmail.com>
Дата:

Re: --enable-xml instead of --with-libxml?

От:
"Nikolay Samokhvalov" <samokhvalov@gmail.com>
Дата:

Re: --enable-xml instead of --with-libxml?

От:
"Nikolay Samokhvalov" <nikolay@samokhvalov.com>
Дата:
On 3/27/07, Bruce Momjian <bruce@momjian.us> wrote:

Where are we on this?  Peter thought the consistency makes sense, but if
we can provide functionality that doesn't require libxml, why not
do it?

I'm still for --enable-xml and putting _everything_ XML-related under this option. My main points are:
 - we cannot guarantee that existing libxml2-free functions will not require them in the future (because libxml2 contains useful routines);
 - libxml2-free functions (e.g. Peter's XML mapping functions, http://momjian.us/main/writings/pgsql/sgml/functions-xml.html#FUNCTIONS-XML-MAPPING) produce XML values, but we cannot use XPath function for them unless we have libxml2;
 - people will make errors, trying to understand what needs libxml2, and what doesn't -- approach "all or nothing" is simple and straightforward;


Well, it seems that I have no more arguments :-) If there is no objections, I'll send the patch tonight.
If I am wrong and it's better to leave libxml2-free capabilities, then IMHO we need to reflect it explicitly in the docs, what requires libxml2, and what doesn't

--
Best regards,
Nikolay

Re: --enable-xml instead of --with-libxml?

От:
"Nikolay Samokhvalov" <nikolay@samokhvalov.com>
Дата:


On 4/5/07, Bruce Momjian <bruce@momjian.us> wrote:
Nikolay Samokhvalov wrote:
[...]
> If I am wrong and it's better to leave libxml2-free capabilities, then IMHO
> we need to reflect it explicitly in the docs, what requires libxml2, and
> what doesn't

Agreed, let's do the later and update the documentation.  

So, you are agreed that I am wrong :-) Well... I would be happy hear some arguments, but I cannot insist on it :-)
 

Also, do we
output a helpful message if someone tries to use a libxml2 function that
isn't available.

Yep, here it is:

INSERT INTO xmltest VALUES (1, '<value>one</value>');
ERROR: no XML support in this installation

I suppose we should change it to "no libxml2 support in this installation", shouldn't we?



--
Best regards,
Nikolay
FAQ