| 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 21:14:33 |
| Message-ID: | CAB8bMivsVyNY5_4UQsRhA6ThCuzeOmczROGMwjtFQcth4sNr9w@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
чт, 26 нояб. 2026 г. в 00:34, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
> Andrey Rachitskiy <pl0h0yp1(at)gmail(dot)com> writes:
> > 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.
>
> Indeed, but we could use the trick I suggested in the other thread
> of making a context only for big-enough arrays.
I tried to take all the comments into account in v2.
The only thing I'm not sure about MinArrayElemsForTempCxt, what should be
considered 'big'.
Whether it's worth
> the trouble remains unclear to me though.
>
>
Let it rest for now, but it seems to me it won't be superfluous.
--
Regards,
Rachitskiy Andrey
| Attachment | Content-Type | Size |
|---|---|---|
| v2-0001-Render-large-arrays-in-a-temporary-context.patch | text/x-patch | 4.7 KB |
| From | Date | Subject | |
|---|---|---|---|
| Previous Message | Mikhail Gribkov | 2026-11-25 21:02:31 | Bitwise OR instead of logical one in test_aio.c |