> On 15 Nov 2026, at 05:49, PG Bug reporting form <noreply(at)postgresql(dot)org> wrote:
> Clamping len
> to MaxAllocSize - VARHDRSZ (or raising "requested length too large" before
> the allocation, as lo_get() style paths do) would give a proper message.
As far as bugs go, this is pretty low on the prioritylist; but since I had a
look at it I think we should error out like lo_get().
--
Daniel Gustafsson