On 25/11/2026 12:50, Jim Jones wrote:
> psql (19.0 (Debian 19.0-2.pgdg13+1))
> Type "help" for help.
>
> postgres=# select length(xmlelement(name a, array_fill(''::text,
> ARRAY[56000000]))::text);
> server closed the connection unexpectedly
> This probably means the server terminated abnormally
> before or while processing the request.
> The connection to the server was lost. Attempting reset: Failed.
> The connection to the server was lost. Attempting reset: Failed.
> !?>
> \q
BTW the *_to_xml functions seem to share the same issue:
psql (19.0 (Debian 19.0-2.pgdg13+1))
Type "help" for help.
postgres=# select length(query_to_xml('SELECT g,g,g,g,g,g FROM
generate_series(1, 10000000) g', false, false, '')::text);
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.
The connection to the server was lost. Attempting reset: Failed.
!?>
I'll take a look at them once we agree on the approach.
Best, Jim