Re: Add GUC to enable libxml2's XML_PARSE_HUGE - Mailing list pgsql-hackers

From Jim Jones
Subject Re: Add GUC to enable libxml2's XML_PARSE_HUGE
Date
Msg-id 1f3eca95-c9ba-4fd1-8c7b-01c86aea2408@uni-muenster.de
Whole thread Raw
In response to Re: Add GUC to enable libxml2's XML_PARSE_HUGE  (Erik Wienhold <ewie@ewie.name>)
List pgsql-hackers

On 21.08.25 04:26, Erik Wienhold wrote:
> I guess the excuse for xmloption is that the SQL standard defines SET
> XML OPTION.

I guess you're right... in this case the standard dictates what should
be done. It just doesn't change the fact that depending on the parameter
value the same query succeeds or fails, which is pretty much what would
happen with xml_parse_huge.

>> Would you see any other way, other than a GUC, to provide this
>> feature?
> Forking off the core XML code into an extension to provide a custom xml
> data type with the desired parsing behavior? :(

That could work. I'm just afraid it would be too much trouble just to
enable text nodes larger than 10MB.

Regards, Jim



pgsql-hackers by date:

Previous
From: Frédéric Yhuel
Date:
Subject: Re: [BUG] temporary file usage report with extended protocol and unnamed portals
Next
From: Dmitry
Date:
Subject: Inconsistent update in the MERGE command