Trond Kjernaasen <trond@trolltech.com> writes:
> Sorry for posting followups on my own mails, but I've noticed that
> I can actually use lo_read() if I read the BLOBs in chunks of
> 32760 bytes. If I try to read 32761 bytes it fails for some reason.
I'm betting that something is rounding up to the next multiple of 8
bytes, and then something else is trying to fit the result in a short
integer. Dunno where though --- AFAIR, all the LO-related code uses
integer counts, and I can't think of a good reason for rounding off
to an alignment multiple either.
Can you pursue this further and identify the culprit? I have no time
for it at the moment.
regards, tom lane