Re: BUG #18274: Error 'invalid XML content'
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: d.koval@postgrespro.ru
Cc: pgsql-bugs@lists.postgresql.org
Date: 2024-01-07T18:18:49Z
Lists: pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes: > The problem is in the libxml2 library (in xmlParseBalancedChunkMemory > function), which is used in PostgreSQL and does not support the > XML_PARSE_HUGE flag. > There have been attempts to correct this problem [1]. > Apparently they were unsuccessful because libxml2 technical support refused > to fix the xmlParseBalancedChunkMemory function. > I'd like to know what the community's opinion is regarding this error: > 1) the error is correct and does not need to be corrected; > 2) corrections should be made in the libxml2 library; > 3) corrections should be made in PostgreSQL (maybe need to stop using the > xmlParseBalancedChunkMemory function or make other corrections); > 4) ...? libxml2 seems to be a little moribund, so I'm not sure that waiting for #2 to happen will yield results. On the other hand, XML is pretty much a development backwater in Postgres too, so if you are hoping for somebody else to do #3 you are unlikely to get anywhere. If you want to work on #3 yourself, have at it. regards, tom lane
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