| From: | Andrey Rachitskiy <pl0h0yp1(at)gmail(dot)com> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | pgsql-hackers mailing list <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Fix OOM when rendering large geometry arrays |
| Date: | 2026-11-25 18:31:47 |
| Message-ID: | CAB8bMivYkWGZhc4EV0OKg_uENu+ZJxgOXd7+JA+uuLAu+6SfYQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Wed, Nov 25, 2026, 22:52 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Melanie Plageman | 2026-11-25 18:34:10 | Re: Why clearing the VM doesn't require registering vm buffer in wal record |
| Previous Message | Tom Lane | 2026-11-25 18:13:15 | Re: Reducing output size of nodeToString |