On Wed, Nov 25, 2026, 22:52 Tom Lane <[email protected]> wrote:

>
> This seems quite myopic.  Those are far from the only datatypes whose
> output functions are memory-profligate.  If we wanted to do something
> about this, a temporary context similar to what's being discussed in
> the adjacent thread about xmlelement() [1] would be a more plausible
> answer.
>

I thought about temporary context, but decided not to use it since I
figured it would be too expensive in this case — it's not free, after all.


> However, I'm resistant to the idea that we need to do something
> about this.  It will always be possible to run a backend out of
> memory.


I think you're right.

Thanks for taking note of the email.

---
Regards,
Rachitskiy Andrey

Reply via email to