Re: BUG #18981: Fault tolerance and improvement for xmltotext_with_options (xml.c)
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: d.kovalenko@postgrespro.ru
Cc: pgsql-bugs@lists.postgresql.org
Date: 2025-07-08T16:51:56Z
Lists: pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes: > Please look at this code: > https://github.com/postgres/postgres/blob/a27893df45ec5d8c657899202e9cf0b9a816fe2f/src/backend/utils/adt/xml.c#L730 > xmlerrcxt = pg_xml_init(PG_XML_STRICTNESS_ALL); > pg_xml_init uses palloc and may "raise an exception". Yup, we should cover that case. > Also > Within PG_CATCH 'doc' is not NULL. Agreed. Pushed your fix with small editorialization. regards, tom lane
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix low-probability memory leak in XMLSERIALIZE(... INDENT).
- e03c95287764 19 (unreleased) landed
- abb517d619c3 16.10 landed
- 95cf1a1817c9 17.6 landed
- 075554ec6c0c 18.0 landed
-
pg_walsummary: Improve stability of test checking statistics
- a27893df45ec 19 (unreleased) cited