Re: BUG #18274: Error 'invalid XML content'
Dmitry Koval <d.koval@postgrespro.ru>
From: Dmitry Koval <d.koval@postgrespro.ru>
To: Michael Paquier <michael@paquier.xyz>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, pgsql-bugs@lists.postgresql.org
Date: 2024-01-15T15:47:17Z
Lists: pgsql-bugs
Hi! > 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?) I think that's right (flag XML_PARSE_HUGE shouldn't cause any problems). My main doubts are related to the replacement of the xmlParseBalancedChunkMemory() function (that haven't argument for pass XML_PARSE_HUGE flag) with xmlNewNode() + xmlParseInNodeContext() functions (create a fake node and pass the XML_PARSE_HUGE flag to xmlParseInNodeContext function). I'm not sure if this replacement is 100% equivalent (although simple tests work the same). -- With best regards, Dmitry Koval Postgres Professional: http://postgrespro.com
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