> On 25 Nov 2026, at 14:01, Jakub Wartak <jakub(dot)wartak(at)enterprisedb(dot)com> wrote:
> +1 to fixing this. Patch LGMT, maybe just two tiny things:
>
> - perhaps move MemoryContext oldcxt to the loop
> - "map_sql_value_to_xml_value temporary cxt" is a bit lengthy blob, maybe
> "elements of XML array" would suffice there (or maybe check further wihtin
> pg_backend_memory_contexts for better examples)
+1. Patch looks good on a first glance, expanding to the *_to_xml cases seems
like a good idea.
--
Daniel Gustafsson