Re: [PATCH] Add XMLText function (SQL/XML X038)

Поиск
Список
Период
Сортировка
От Vik Fearing
Тема Re: [PATCH] Add XMLText function (SQL/XML X038)
Дата
Msg-id 40b65c4b-bca6-5713-39df-6080b97891b1@postgresfriends.org
обсуждение исходный текст
Ответ на [PATCH] Add XMLText function (SQL/XML X038)  (Jim Jones <jim.jones@uni-muenster.de>)
Ответы Re: [PATCH] Add XMLText function (SQL/XML X038)
Список pgsql-hackers
On 3/25/23 12:49, Jim Jones wrote:
> Hi,
> 
> This small patch proposes the implementation of the standard SQL/XML 
> function XMLText (X038). It basically converts a text parameter into an 
> xml text node. It uses the libxml2 function xmlEncodeSpecialChars[1] to 
> escape possible predefined entities.
> 
> This patch also contains documentation and regression tests.
> 
> Any thoughts?

I am replying to this email, but my comments are based on the v2 patch.

Thank you for working on this, and I think this is a valuable addition. 
However, I have two issues with it.

1) There seems to be several spurious blank lines added that I do not 
think are warranted.

2) This patch does nothing to address the <XML returning clause> so we 
can't claim to implement X038 without a disclaimer.  Upon further 
review, the same is true of XMLCOMMENT() so maybe that is okay for this 
patch, and a more comprehensive patch for our xml features is necessary.
-- 
Vik Fearing




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: logical_replication_mode
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: subscription/015_stream sometimes breaks