Re: Re: Problems with BLOBs under Windows? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Re: Problems with BLOBs under Windows?
Date
Msg-id 9559.979929802@sss.pgh.pa.us
Whole thread Raw
In response to Re: Problems with BLOBs under Windows?  (Trond Kjernaasen <trond@trolltech.com>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Re: [PATCHES] s_lock.h cleanup
Next
From: "Mikheev, Vadim"
Date:
Subject: RE: Possible performance improvement: buffer replacemen t policy