Re: BUG #18274: Error 'invalid XML content'

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: BUG #18274: Error 'invalid XML content'
Дата
Msg-id ZaRvbaQ8V9uGxXGD@paquier.xyz
обсуждение исходный текст
Ответ на Re: BUG #18274: Error 'invalid XML content'  (Dmitry Koval <d.koval@postgrespro.ru>)
Ответы Re: BUG #18274: Error 'invalid XML content'  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: BUG #18274: Error 'invalid XML content'  (Dmitry Koval <d.koval@postgrespro.ru>)
Список pgsql-bugs
On Sun, Jan 14, 2024 at 11:58:07PM +0300, Dmitry Koval wrote:
>> Is there some downside to XML_PARSE_HUGE?
>
> I didn't see any problems during simple testing of patch with the
> XML_PARSE_HUGE.
> Extended testing will be performed soon.
> Then (I hope) we will send a trial version of PostgreSQL with a patch to
> customers who use XML.

If one looks at the libxml2 like this mirror at [1], it is possible to
see that the flag is only used to lift internal hard limits, for stuff
like XML_MAX_TEXT_LENGTH and XML_MAX_NAME_LENGTH for size control, or
max node depths.

Knowing that we have full control of the memory contexts for the XML
nodes, just enforcing the huge flag does not seem like there's any
downside for us.  (Right?)

[1]: https://github.com/GNOME/libxml2
--
Michael

Вложения

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

Предыдущее
От: Dmitry Koval
Дата:
Сообщение: Re: BUG #18274: Error 'invalid XML content'
Следующее
От: Andrei Lepikhov
Дата:
Сообщение: Re: BUG #18260: Unexpected error: "negative bitmapset member not allowed" triggered by multiple JOIN