PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> Hello, I need your help. The essence of the problem is that I am trying to
> download a bytea field from a table row. The size of the data in the field
> is about 700 MB. In response, I receive an out-of-memory error.
I don't see this as a Postgres bug. If you want to work with values
that large, you'd better have plenty of memory available.
regards, tom lane