postgresql/src/backend
Tom Lane 6082b3d5d3 Use xmlParseInNodeContext not xmlParseBalancedChunkMemory.
xmlParseInNodeContext has basically the same functionality with
a different API: we have to supply an xmlNode that's attached to a
document rather than just the document.  That's not hard though.
The benefits are two:

* Early 2.13.x releases of libxml2 contain a bug that causes
xmlParseBalancedChunkMemory to return the wrong status value in some
cases.  This breaks our regression tests.  While that bug is now fixed
upstream and will probably never be seen in any production-oriented
distro, it is currently a problem on some more-bleeding-edge-friendly
platforms.

* xmlParseBalancedChunkMemory is considered to depend on libxml2's
semi-deprecated SAX1 APIs, and will go away when and if they do.
There may already be libxml2 builds out there that lack this function.

So there are both short- and long-term reasons to make this change.

While here, avoid allocating an xmlParserCtxt in DOCUMENT parse mode,
since that code path is not going to use it.

Like 066e8ac6e, this will need to be back-patched.  This is just a
trial commit to see if the buildfarm agrees that we can use
xmlParseInNodeContext unconditionally.

Erik Wienhold and Tom Lane, per report from Frank Streitzig.

Discussion: https://postgr.es/m/trinity-b0161630-d230-4598-9ebc-7a23acdb37cb-1720186432160@3c-app-gmx-bap25
Discussion: https://postgr.es/m/trinity-361ba18b-541a-4fe7-bc63-655ae3a7d599-1720259822452@3c-app-gmx-bs01
2024-07-08 14:04:00 -04:00
..
access Assign error codes where missing for user-facing failures 2024-07-04 09:48:40 +09:00
archive Fix memory leaks in error reporting with LOG level 2024-05-14 10:41:32 +02:00
backup Assign error codes where missing for user-facing failures 2024-07-04 09:48:40 +09:00
bootstrap Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
catalog Add pg_get_acl() to get the ACL for a database object 2024-07-04 17:09:06 +09:00
commands Widen lossy and exact page counters for Bitmap Heap Scan 2024-07-08 14:43:09 +12:00
executor Fix right-anti-joins when the inner relation is proven unique 2024-07-08 10:11:46 +09:00
foreign Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
jit SQL/JSON: Always coerce JsonExpr result at runtime 2024-06-28 21:58:13 +09:00
lib Revert: Implement pg_wal_replay_wait() stored procedure 2024-04-11 17:28:15 +03:00
libpq Assign error codes where missing for user-facing failures 2024-07-04 09:48:40 +09:00
main Tighten check for --forkchild argument when spawning child process 2024-07-03 15:53:30 +03:00
nodes SQL/JSON: Always coerce JsonExpr result at runtime 2024-06-28 21:58:13 +09:00
optimizer Support "Right Semi Join" plan shapes 2024-07-05 09:26:48 +09:00
parser SQL/JSON: Fix some obsolete comments. 2024-07-04 16:05:35 +09:00
partitioning Fix creation of partition descriptor during concurrent detach 2024-06-11 11:38:45 +02:00
po Translation updates 2024-06-24 13:11:27 +02:00
port Revise GUC names quoting in messages again 2024-05-17 11:44:26 +02:00
postmaster Avoid 0-length memcpy to NULL with EXEC_BACKEND 2024-07-03 15:58:14 +03:00
regex Support C.UTF-8 locale in the new builtin collation provider. 2024-03-19 15:24:41 -07:00
replication Assign error codes where missing for user-facing failures 2024-07-04 09:48:40 +09:00
rewrite Fix assorted bugs related to identity column in partitioned tables 2024-05-07 22:50:00 +02:00
snowball Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
statistics Fix typos and duplicate words 2024-04-18 21:28:07 +02:00
storage Remove an extra period in code comment 2024-07-08 11:17:22 +09:00
tcop Remove redundant SetProcessingMode(InitProcessing) calls 2024-07-02 20:14:40 +03:00
tsearch Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
utils Use xmlParseInNodeContext not xmlParseBalancedChunkMemory. 2024-07-08 14:04:00 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
Makefile Fix make build on MinGW 2024-06-21 08:17:23 +02:00
meson.build meson: Fix import library name in Windows 2024-06-20 09:08:36 +02:00
nls.mk Add missing gettext triggers 2024-05-14 12:57:22 +02:00