Re: BUG #18274: Error 'invalid XML content'
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Dmitry Koval <d.koval@postgrespro.ru>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, pgsql-bugs@lists.postgresql.org
Date: 2024-01-14T23:34:05Z
Lists: 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
Commits
-
xml2: Replace deprecated routines with recommended ones
- 4b0e5d601291 12.19 landed
- bb418aeee270 13.15 landed
- 6fa5e67e832b 14.12 landed
- 689ba4f1c406 15.7 landed
- 7c93f31dee5f 16.3 landed
- 65c5864d7fac 17.0 landed
-
Revert "Add support for parsing of large XML data (>= 10MB)"
- f2743a7d70e7 17.0 landed
-
Add support for parsing of large XML data (>= 10MB)
- 2197d06224a1 17.0 landed