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. Whether it's worth
the trouble remains unclear to me though.
regards, tom lane